Skip to contentSkip to conversation

oe-buildenv-internal: whitelist premirror-related variables

PATCH New Sascha Silbe 1 participant 1 message Mar 21, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oe-buildenv-internal: whitelist premirror-related variables

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.

---
 scripts/oe-buildenv-internal | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/oe-buildenv-internal +2 -1
index 6773872326..fb82247777 100755
@@ -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' ' ')"
 
Signature · 1 line
2.11.0