Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit 14d6b9b

Browse files
committed
buildroot/rebuild.sh: Create ARCH variable to explain how it is created
[skip ci] Signed-off-by: Nathan Chancellor <[email protected]>
1 parent ae3585e commit 14d6b9b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

buildroot/rebuild.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,13 @@ for CONFIG in "${CONFIGS[@]}"; do
5858
# Build images
5959
make -j"$(nproc)"
6060

61+
# Get the architecture from the name of the config: ../<arch>.config
62+
# basename strips ../
63+
# ${CONFIG//.config} strips .config
64+
ARCH=$(basename "${CONFIG//.config}")
65+
6166
# Make sure images folder exists
62-
IMAGES_FOLDER=../../images/$(basename "${CONFIG//.config}")
67+
IMAGES_FOLDER=../../images/${ARCH}
6368
[[ ! -d ${IMAGES_FOLDER} ]] && mkdir -p "${IMAGES_FOLDER}"
6469

6570
# Copy new images

0 commit comments

Comments
 (0)