From 63e6ba85677b8aa9f4cf9942a1fccbb8a8c72660 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 16 Jul 2010 15:10:22 +0100 Subject: bitbake: Add support for .bbappend files (see mailing lists for detais) Signed-off-by: Richard Purdie --- bitbake/lib/bb/parse/ast.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/parse') diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py index dae2e11154..eb24e0ddd4 100644 --- a/bitbake/lib/bb/parse/ast.py +++ b/bitbake/lib/bb/parse/ast.py @@ -357,8 +357,12 @@ def _expand_versions(versions): versions = itertools.chain(newversions, versions) def multi_finalize(fn, d): - safe_d = d + appends = (d.getVar("__BBAPPEND", True) or "").split() + for append in appends: + bb.msg.debug(2, bb.msg.domain.Parsing, "Appending .bbappend file " + append + " to " + fn) + bb.parse.BBHandler.handle(append, d, True) + safe_d = d d = bb.data.createCopy(safe_d) try: finalize(fn, d) -- cgit v1.2.3-54-g00ecf