From a56bd812a7204b74abfe413234f16c4bf9b86bfb Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 17 Feb 2014 14:07:40 +0000 Subject: bitbake: parse: make vars_from_file return None for non-recipes 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). (Bitbake rev: 22e03ef7ac9bb6b7245250347ae9c10c19f1d74e) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- bitbake/lib/bb/parse/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/parse') diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py index 97983c9880..e4a44dda11 100644 --- a/bitbake/lib/bb/parse/__init__.py +++ b/bitbake/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] -- cgit v1.2.3-54-g00ecf