From 8cf1722f0fde510ea81d13b31bde1e48917a0306 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 1 Dec 2021 22:45:52 -0600 Subject: [PATCH] Running mkroot package builds in a subshell means they can't set QEMU_MORE. --- scripts/mkroot.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/mkroot.sh b/scripts/mkroot.sh index 74fc0845..a9b3da35 100755 --- a/scripts/mkroot.sh +++ b/scripts/mkroot.sh @@ -142,9 +142,8 @@ LDFLAGS=--static PREFIX="$ROOT" make clean \ ${CONF:-defconfig KCONFIG_ALLCONFIG=<(echo "$XX")} toybox install || exit 1 # Build any packages listed on command line -for i in $PKG; do - announce "$i" - ( PATH="$PKGDIR:$PATH"; source plumbing; source $i ) || die $i +for i in ${PKG:+plumbing $PKG}; do + announce "$i"; PATH="$PKGDIR:$PATH" source $i || die $i done # ----- Build kernel for target -- 2.39.2