uboot-mtk-20250711: fix build with emmc bootmenu

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen
2025-08-13 19:01:02 +08:00
committed by hanwckf
parent 56dede40b8
commit a2c8e65769

View File

@@ -1367,7 +1367,11 @@ static int str_to_size(const char *s, u64 *retsz)
static int ubi_check_reserved_volumes(bool require_attach) 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; const char *rsvd_vols = CONFIG_MTK_UBI_RESERVED_VOLUMES;
#else
const char *rsvd_vols = NULL;
#endif
char *buf, *volname, *volsz, *end, *next; char *buf, *volname, *volsz, *end, *next;
struct ubi_volume *vol; struct ubi_volume *vol;
u64 volsize; u64 volsize;