[poky] [PATCH] oe-buildenv-internal: whitelist premirror-related variables
Sascha Silbe
x-yo17 at se-silbe.de
Wed Mar 21 09:15:05 PDT 2018
Whitelisting them allows build scripts to create a local download
mirror (BB_GENERATE_MIRROR_TARBALLS=1) in one step and perform a build
using only this local download mirror (PREMIRRORS + BB_NO_NETWORK=1 or
BB_FETCH_PREMIRRORONLY) without having to touch local.conf.
PREMIRRORS only provides additional download sources and does not
affect the build output in any way so it's safe to
whitelist. BB_GENERATE_MIRROR_TARBALLS only causes additional files in
the download folder to be created so it doesn't affect the build
output (in tmp/) either. BB_FETCH_PREMIRRORONLY and
BB_ALLOWED_NETWORKS are related to the already whitelisted
BB_NO_NETWORK.
Signed-off-by: Sascha Silbe <x-yo17 at se-silbe.de>
---
scripts/oe-buildenv-internal | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
index 6773872326..fb82247777 100755
--- a/scripts/oe-buildenv-internal
+++ b/scripts/oe-buildenv-internal
@@ -133,7 +133,8 @@ BB_ENV_EXTRAWHITE_OE="MACHINE DISTRO TCMODE TCLIBC HTTP_PROXY http_proxy \
HTTPS_PROXY https_proxy FTP_PROXY ftp_proxy FTPS_PROXY ftps_proxy ALL_PROXY \
all_proxy NO_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY \
SDKMACHINE BB_NUMBER_THREADS BB_NO_NETWORK PARALLEL_MAKE GIT_PROXY_COMMAND \
-SOCKS5_PASSWD SOCKS5_USER SCREENDIR STAMPS_DIR BBPATH_EXTRA BB_SETSCENE_ENFORCE"
+SOCKS5_PASSWD SOCKS5_USER SCREENDIR STAMPS_DIR BBPATH_EXTRA BB_SETSCENE_ENFORCE \
+BB_GENERATE_MIRROR_TARBALLS PREMIRRORS BB_ALLOWED_NETWORKS BB_FETCH_PREMIRRORONLY"
BB_ENV_EXTRAWHITE="$(echo $BB_ENV_EXTRAWHITE $BB_ENV_EXTRAWHITE_OE | tr ' ' '\n' | LC_ALL=C sort --unique | tr '\n' ' ')"
--
2.11.0
More information about the poky
mailing list