You can now add such lines into local.conf if you want to use
your git tree sources instead of those provided by the recipe

INHERIT_append_pn-myproject = "srctree gitver"
S_pn-myproject = "/local/oe/localforks/myproject"
PV_pn-myproject = "${GITVER}"

I made some small performance test with the poky database.
I measure 20  complete cache rebuild takes once all the bbfiles are in the
RAM cache.

- without the patch:  3m52.727s
- with EXTRA_INHERIT: 3m59.343s
- with INHERIT:       3m57.911s

Signed-off-by: Pierre Tardy <[email protected]>
---
 lib/bb/parse/parse_py/BBHandler.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/bb/parse/parse_py/BBHandler.py
b/lib/bb/parse/parse_py/BBHandler.py
index 4f98bf9..a646668 100644
--- a/lib/bb/parse/parse_py/BBHandler.py
+++ b/lib/bb/parse/parse_py/BBHandler.py
@@ -161,6 +161,11 @@ def handle(fn, d, include = 0):
     if ext != ".bbclass":
         data.setVar('FILE', fn, d)

+    if ext != ".bbclass" and include == 0:
+        # Handle any recipe specific INHERITs
+        bb.data.update_data(d)
+        inherit((bb.data.getVar('INHERIT', d, True ) or "").split(),d)
+
     lineno = 0
     while 1:
         lineno = lineno + 1
-- 
1.6.0.4


-- 
Pierre
From 48c2c883c193f633909334a3a7c7afd6362071e8 Mon Sep 17 00:00:00 2001
From: Pierre Tardy <[email protected]>
Date: Thu, 10 Sep 2009 21:19:24 +0200
Subject: [PATCH] BBHandler: Add EXTRA_INHERIT recipe specific inherit addition

You can now add such lines into local.conf if you want to use
your git tree sources instead of those provided by the recipe

INHERIT_append_pn-myproject = "srctree gitver"
S_pn-myproject = "/local/oe/localforks/myproject"
PV_pn-myproject = "${GITVER}"

I made some small performance test with the poky database.
I measure 20  complete cache rebuild takes once all the bbfiles are in the RAM cache.

- without the patch:  3m52.727s
- with EXTRA_INHERIT: 3m59.343s
- with INHERIT:       3m57.911s

Signed-off-by: Pierre Tardy <[email protected]>
---
 lib/bb/parse/parse_py/BBHandler.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/bb/parse/parse_py/BBHandler.py b/lib/bb/parse/parse_py/BBHandler.py
index 4f98bf9..a646668 100644
--- a/lib/bb/parse/parse_py/BBHandler.py
+++ b/lib/bb/parse/parse_py/BBHandler.py
@@ -161,6 +161,11 @@ def handle(fn, d, include = 0):
     if ext != ".bbclass":
         data.setVar('FILE', fn, d)
 
+    if ext != ".bbclass" and include == 0:
+        # Handle any recipe specific INHERITs
+        bb.data.update_data(d)
+        inherit((bb.data.getVar('INHERIT', d, True ) or "").split(),d)
+
     lineno = 0
     while 1:
         lineno = lineno + 1
-- 
1.6.0.4

_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev

Reply via email to