All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bitbake: main: add 2 environment variables
@ 2016-04-19 14:30 Ed Bartosh
  2016-04-19 19:58 ` Richard Purdie
  2016-04-20  7:31 ` [PATCH 1/2] " Ed Bartosh
  0 siblings, 2 replies; 5+ messages in thread
From: Ed Bartosh @ 2016-04-19 14:30 UTC (permalink / raw)
  To: bitbake-devel

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>
---
 bitbake/lib/bb/main.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py
index e302173..1dd7877 100755
--- a/bitbake/lib/bb/main.py
+++ b/bitbake/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 = os.environ["BBPRECONF"]
+
+        if "BBPOSTCONF" in os.environ:
+            option.postfile = os.environ["BBPOSTCONF"]
+
         # fill in proper log name if not supplied
         if options.writeeventlog is not None and len(options.writeeventlog) == 0:
             import datetime
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-20  9:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-19 14:30 [PATCH] bitbake: main: add 2 environment variables Ed Bartosh
2016-04-19 19:58 ` Richard Purdie
2016-04-20  6:20   ` Ed Bartosh
2016-04-20  7:31 ` [PATCH 1/2] " Ed Bartosh
2016-04-20  7:31   ` [PATCH 2/2] bitbake: main: set defaults from env variables Ed Bartosh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.