build.sh: fix atf-2024/atf-2025 emmc configs

This commit is contained in:
hanwckf
2025-08-21 14:36:33 +08:00
parent 8d0a22474b
commit c74ba01cc4

View File

@@ -34,7 +34,7 @@ for file in "$ATF_DIR/configs/$ATF_CFG" "$UBOOT_DIR/configs/$UBOOT_CFG"; do
fi
done
if grep -q "CONFIG_FLASH_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
fixedparts=0
multilayout=0