From 922acf0911957b9bcf6153916a2bb83c1f0b9a2f Mon Sep 17 00:00:00 2001 From: airjinkela <67526885+airjinkela@users.noreply.github.com> Date: Fri, 29 Aug 2025 20:06:45 +0800 Subject: [PATCH] build.sh : return error on muilt layout defconfig not found (#147) Signed-off-by: air jinkela --- build.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index 12ebd0149..afcba6a2f 100755 --- a/build.sh +++ b/build.sh @@ -27,12 +27,6 @@ export CROSS_COMPILE="$TOOLCHAIN" ATF_CFG="${SOC}_${BOARD}_defconfig" UBOOT_CFG="${SOC}_${BOARD}_defconfig" -for file in "$ATF_DIR/configs/$ATF_CFG" "$UBOOT_DIR/configs/$UBOOT_CFG"; do - if [ ! -f "$file" ]; then - echo "$file not found!" - exit 1 - fi -done if grep -Eq "CONFIG_FLASH_DEVICE_EMMC=y|_BOOT_DEVICE_EMMC=y" $ATF_DIR/configs/$ATF_CFG ; then # No fixed-mtdparts or multilayout for EMMC @@ -46,6 +40,14 @@ else UBOOT_CFG="${SOC}_${BOARD}_multi_layout_defconfig" fi fi + +for file in "$ATF_DIR/configs/$ATF_CFG" "$UBOOT_DIR/configs/$UBOOT_CFG"; do + if [ ! -f "$file" ]; then + echo "$file not found!" + exit 1 + fi +done + echo "Building for: ${SOC}_${BOARD}, fixed-mtdparts: $fixedparts, multi-layout: $multilayout" echo "u-boot dir: $UBOOT_DIR" echo "atf dir: $ATF_DIR"