]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: bin/toaster whitelist TOASTER_DIR
authorbrian avery <brian.avery@intel.com>
Sun, 15 Jan 2017 03:18:32 +0000 (19:18 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Jan 2017 13:18:43 +0000 (13:18 +0000)
Some of the tinfoil2 changes resulted in TOASTER_DIR being cleared by
the memory resident bitbake server toaster starts up.  This prevented
toaster from being able to connect to its sqlite database. Adding
TOASTER_DIR to the BB_ENV_EXTRAWHITE list stops the cooker from clearing
out the TOASTER_DIR variable.

[YOCTO #9252]

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bin/toaster

index de38cece054e7d7fabcc80ec087d059563c6d0cb..daaf8eaac8810c9f52b35c58ea1abce4fb16d17f 100755 (executable)
@@ -158,6 +158,7 @@ unset OE_ROOT
 # 4) pid's we need to clean up on exit/shutdown
 # note: for future. in order to make this an arbitrary directory, we need to
 # make sure that the toaster.sqlite file doesn't default to `pwd` like it currently does.
+export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE TOASTER_DIR"
 export TOASTER_DIR=`pwd`
 
 WEBSERVER=1