build.sh : return error on muilt layout defconfig not found (#147)
Signed-off-by: air jinkela <air_jinkela@163.com>
This commit is contained in:
14
build.sh
14
build.sh
@@ -27,12 +27,6 @@ export CROSS_COMPILE="$TOOLCHAIN"
|
|||||||
|
|
||||||
ATF_CFG="${SOC}_${BOARD}_defconfig"
|
ATF_CFG="${SOC}_${BOARD}_defconfig"
|
||||||
UBOOT_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
|
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
|
# No fixed-mtdparts or multilayout for EMMC
|
||||||
@@ -46,6 +40,14 @@ else
|
|||||||
UBOOT_CFG="${SOC}_${BOARD}_multi_layout_defconfig"
|
UBOOT_CFG="${SOC}_${BOARD}_multi_layout_defconfig"
|
||||||
fi
|
fi
|
||||||
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 "Building for: ${SOC}_${BOARD}, fixed-mtdparts: $fixedparts, multi-layout: $multilayout"
|
||||||
echo "u-boot dir: $UBOOT_DIR"
|
echo "u-boot dir: $UBOOT_DIR"
|
||||||
echo "atf dir: $ATF_DIR"
|
echo "atf dir: $ATF_DIR"
|
||||||
|
|||||||
Reference in New Issue
Block a user