recipeparse.py: handle old BBFILES append method in layer.conf

Some layers use an older-style method to append a value to BBFILES,
namely BBFILES := "${BBFILES} ..." - this normally works fine, but in
our environment we don't order parsing of layers. That's probably wrong,
but for now just ensure BBFILES has a value to begin with as a
workaround.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2015-06-17 18:36:37 +01:00
parent 40f1d51de6
commit 8966d2ea4e

View File

@ -104,6 +104,10 @@ def init_parser(settings, branch, bitbakepath, enable_tracking=False, nocheckout
if not os.path.exists(oe_tmpdir): if not os.path.exists(oe_tmpdir):
os.makedirs(oe_tmpdir) os.makedirs(oe_tmpdir)
# Ensure BBFILES as an initial value so that the old mode of BBFILES := "${BBFILES} ..." works
if not tinfoil.config_data.getVar('BBFILES', False):
tinfoil.config_data.setVar('BBFILES', '')
return (tinfoil, tempdir) return (tinfoil, tempdir)
def checkout_layer_branch(layerbranch, repodir, logger=None): def checkout_layer_branch(layerbranch, repodir, logger=None):