From a2c8e65769bb943dfa564e241fd74ed4229c89b5 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Wed, 13 Aug 2025 19:01:02 +0800 Subject: [PATCH] uboot-mtk-20250711: fix build with emmc bootmenu Signed-off-by: Tianling Shen --- uboot-mtk-20250711/board/mediatek/common/mtd_helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uboot-mtk-20250711/board/mediatek/common/mtd_helper.c b/uboot-mtk-20250711/board/mediatek/common/mtd_helper.c index 0bd15ee8e..307639027 100644 --- a/uboot-mtk-20250711/board/mediatek/common/mtd_helper.c +++ b/uboot-mtk-20250711/board/mediatek/common/mtd_helper.c @@ -1367,7 +1367,11 @@ static int str_to_size(const char *s, u64 *retsz) static int ubi_check_reserved_volumes(bool require_attach) { +#if defined(CONFIG_MTK_UBI_RESERVED_VOLUMES) const char *rsvd_vols = CONFIG_MTK_UBI_RESERVED_VOLUMES; +#else + const char *rsvd_vols = NULL; +#endif char *buf, *volname, *volsz, *end, *next; struct ubi_volume *vol; u64 volsize;