summaryrefslogtreecommitdiffstats
path: root/MAKEALL
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-05-02 09:39:21 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-05-02 13:40:22 +0200
commit53ea216b06644b82a8e3c0d1d3ca16d9be025c25 (patch)
treefbec1ae7a87e00ab0f9865676b685f365f6bd6a4 /MAKEALL
parent4350840abb6443dd2f21c572826af9b357e49f65 (diff)
downloadbarebox-53ea216b06644b82a8e3c0d1d3ca16d9be025c25.tar.gz
barebox-53ea216b06644b82a8e3c0d1d3ca16d9be025c25.tar.xz
MAKEALL: fix printing number of compiled configs
Do not call do_build_target in a subshell, because increasing nb_defconfigs there will act on a local variable there instead of increasing the variable in the parent shell. Link: https://lore.barebox.org/20230502073925.266116-7-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'MAKEALL')
-rwxr-xr-xMAKEALL4
1 files changed, 2 insertions, 2 deletions
diff --git a/MAKEALL b/MAKEALL
index 4dcfa4138c..75f2f63a1d 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -157,8 +157,8 @@ do_build() {
local arch=$1
local regex=$2
- find arch/${arch}/configs -name "${regex}_defconfig" | sort | while read i
- do
+ configs=$(find arch/${arch}/configs -name "${regex}_defconfig" | sort)
+ for i in ${configs}; do
local target=$(basename $i)
do_build_target ${arch} ${target}