diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-05-02 09:39:21 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-05-02 13:40:22 +0200 |
commit | 53ea216b06644b82a8e3c0d1d3ca16d9be025c25 (patch) | |
tree | fbec1ae7a87e00ab0f9865676b685f365f6bd6a4 /MAKEALL | |
parent | 4350840abb6443dd2f21c572826af9b357e49f65 (diff) | |
download | barebox-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-x | MAKEALL | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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} |