]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
lib/bb/main.py: Fix use of BBPOSTCONF and BBPRECONF
authorMariano Lopez <mariano.lopez@linux.intel.com>
Tue, 7 Jun 2016 12:27:39 +0000 (12:27 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Jun 2016 17:00:45 +0000 (18:00 +0100)
The functionality of BBPOSTCONF and BBPRECONF was added in
commit 21b314d4d1e5b8fbeb4cc57006f0a110f0b3aa8f but there
was a typo in the variable name that raises an exception
in bitbake.

[YOCTO #9235]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/main.py

index b296ef8b8c8b089af2f067169c57bc29e247d5c0..283f29bb15491f9a178c990a49a0fc1762794cec 100755 (executable)
@@ -281,10 +281,10 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters):
 
         # use configuration files from environment variables
         if "BBPRECONF" in os.environ:
-            option.prefile.append(os.environ["BBPRECONF"])
+            options.prefile.append(os.environ["BBPRECONF"])
 
         if "BBPOSTCONF" in os.environ:
-            option.postfile.append(os.environ["BBPOSTCONF"])
+            options.postfile.append(os.environ["BBPOSTCONF"])
 
         # fill in proper log name if not supplied
         if options.writeeventlog is not None and len(options.writeeventlog) == 0: