diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-04-20 10:31:28 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-06 10:12:16 +0100 |
commit | 21b314d4d1e5b8fbeb4cc57006f0a110f0b3aa8f (patch) | |
tree | 24e436fa8ee3129f048b63650ced58aff1669a93 | |
parent | fce42a28cc2c32d90c072ab8561190c8531f9acd (diff) | |
download | poky-21b314d4d1e5b8fbeb4cc57006f0a110f0b3aa8f.tar.gz |
bitbake: 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]
(Bitbake rev: bf604ec1ca4eb4d0b22bcc72249963e6d7445f34)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/lib/bb/main.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index e302173696..08ecddaabd 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/lib/bb/main.py | |||
@@ -250,6 +250,12 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters): | |||
250 | if "BBEVENTLOG" in os.environ: | 250 | if "BBEVENTLOG" in os.environ: |
251 | options.writeeventlog = os.environ["BBEVENTLOG"] | 251 | options.writeeventlog = os.environ["BBEVENTLOG"] |
252 | 252 | ||
253 | if "BBPRECONF" in os.environ: | ||
254 | option.prefile.append(os.environ["BBPRECONF"]) | ||
255 | |||
256 | if "BBPOSTCONF" in os.environ: | ||
257 | option.postfile.append(os.environ["BBPOSTCONF"]) | ||
258 | |||
253 | # fill in proper log name if not supplied | 259 | # fill in proper log name if not supplied |
254 | if options.writeeventlog is not None and len(options.writeeventlog) == 0: | 260 | if options.writeeventlog is not None and len(options.writeeventlog) == 0: |
255 | import datetime | 261 | import datetime |