summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-04-20 10:31:28 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-29 10:29:33 +0100
commitbf604ec1ca4eb4d0b22bcc72249963e6d7445f34 (patch)
tree4f0037ebcfe71209f7883a7219f097811a1c9e8b
parentf08651a954358e9c6ce4d69de285e4cd9e1408ae (diff)
downloadopenembedded-core-contrib-bf604ec1ca4eb4d0b22bcc72249963e6d7445f34.tar.gz
bitbake: main: add 2 environment variables
Bitbake uses set of environment variables to set command line options, e.g. seeting BBTOKEN variable has the same effect as using --token command line option. Added new environment variables BBPRECONF and BBPOSTCONF that are equivalents of --read and --postread command line options. They can be used by high level scripts to append or prepend configuration files to conf/local.conf [YOCTO #9235] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xlib/bb/main.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/main.py b/lib/bb/main.py
index e302173696..08ecddaabd 100755
--- a/lib/bb/main.py
+++ b/lib/bb/main.py
@@ -250,6 +250,12 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters):
if "BBEVENTLOG" in os.environ:
options.writeeventlog = os.environ["BBEVENTLOG"]
+ if "BBPRECONF" in os.environ:
+ option.prefile.append(os.environ["BBPRECONF"])
+
+ if "BBPOSTCONF" in os.environ:
+ option.postfile.append(os.environ["BBPOSTCONF"])
+
# fill in proper log name if not supplied
if options.writeeventlog is not None and len(options.writeeventlog) == 0:
import datetime