* [PATCH 0/2] Misc fixes
@ 2014-02-17 14:07 Paul Eggleton
2014-02-17 14:07 ` [PATCH 1/2] parse: make vars_from_file return None for non-recipes Paul Eggleton
2014-02-17 14:07 ` [PATCH 2/2] build: fix handling of task override for tasks with underscores in their names Paul Eggleton
0 siblings, 2 replies; 3+ messages in thread
From: Paul Eggleton @ 2014-02-17 14:07 UTC (permalink / raw)
To: bitbake-devel
The following changes since commit f975ca2cf728561bd6317ed8f76303598546113a:
runqueue: Fix silly variable overlap (2014-02-15 14:01:55 +0000)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib paule/bb-sigfixes
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=paule/sigfixes
Paul Eggleton (2):
parse: make vars_from_file return None for non-recipes
build: fix handling of task override for tasks with underscores in
their names
lib/bb/build.py | 2 +-
lib/bb/parse/__init__.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--
1.8.5.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] parse: make vars_from_file return None for non-recipes
2014-02-17 14:07 [PATCH 0/2] Misc fixes Paul Eggleton
@ 2014-02-17 14:07 ` Paul Eggleton
2014-02-17 14:07 ` [PATCH 2/2] build: fix handling of task override for tasks with underscores in their names Paul Eggleton
1 sibling, 0 replies; 3+ messages in thread
From: Paul Eggleton @ 2014-02-17 14:07 UTC (permalink / raw)
To: bitbake-devel
It doesn't really make sense to set PN from .conf files, for example.
More concretely, this avoids the config hash changing unnecessarily
within Hob due to PN effectively changing (since bblayers.conf is
parsed first and then .hob.conf).
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
lib/bb/parse/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/parse/__init__.py b/lib/bb/parse/__init__.py
index 97983c9..e4a44dd 100644
--- a/lib/bb/parse/__init__.py
+++ b/lib/bb/parse/__init__.py
@@ -127,7 +127,7 @@ def resolve_file(fn, d):
# Used by OpenEmbedded metadata
__pkgsplit_cache__={}
def vars_from_file(mypkg, d):
- if not mypkg:
+ if not mypkg or not mypkg.endswith((".bb", ".bbappend")):
return (None, None, None)
if mypkg in __pkgsplit_cache__:
return __pkgsplit_cache__[mypkg]
--
1.8.5.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] build: fix handling of task override for tasks with underscores in their names
2014-02-17 14:07 [PATCH 0/2] Misc fixes Paul Eggleton
2014-02-17 14:07 ` [PATCH 1/2] parse: make vars_from_file return None for non-recipes Paul Eggleton
@ 2014-02-17 14:07 ` Paul Eggleton
1 sibling, 0 replies; 3+ messages in thread
From: Paul Eggleton @ 2014-02-17 14:07 UTC (permalink / raw)
To: bitbake-devel
Tasks whose names contain underscores (such as do_populate_sdk in OE)
when converted to a task override do not function properly. If we
replace underscores with hyphens we can still have a working override
for these tasks.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
lib/bb/build.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/build.py b/lib/bb/build.py
index 692b91e..50a28dc 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -330,7 +330,7 @@ def _task_data(fn, task, d):
localdata.setVar('BB_FILENAME', fn)
localdata.setVar('BB_CURRENTTASK', task[3:])
localdata.setVar('OVERRIDES', 'task-%s:%s' %
- (task[3:], d.getVar('OVERRIDES', False)))
+ (task[3:].replace('_', '-'), d.getVar('OVERRIDES', False)))
localdata.finalize()
bb.data.expandKeys(localdata)
return localdata
--
1.8.5.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-17 14:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-17 14:07 [PATCH 0/2] Misc fixes Paul Eggleton
2014-02-17 14:07 ` [PATCH 1/2] parse: make vars_from_file return None for non-recipes Paul Eggleton
2014-02-17 14:07 ` [PATCH 2/2] build: fix handling of task override for tasks with underscores in their names Paul Eggleton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox