uboot-mtk-20250711: fix build without CONFIG_MEDIATEK_MULTI_MTD_LAYOUT
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
@@ -1541,10 +1541,8 @@ int mtd_upgrade_image(const void *data, size_t size)
|
||||
struct owrt_image_info ii;
|
||||
struct mtd_info *mtd;
|
||||
int ret;
|
||||
#ifdef CONFIG_MEDIATEK_MULTI_MTD_LAYOUT
|
||||
const char *ubi_flash_part = PART_UBI_NAME;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CMD_UBI
|
||||
struct mtd_info *mtd_kernel;
|
||||
@@ -1639,10 +1637,8 @@ int mtd_boot_image(bool do_boot)
|
||||
{
|
||||
#if defined(CONFIG_CMD_UBI) || !defined(CONFIG_MTK_DUAL_BOOT)
|
||||
struct mtd_info *mtd;
|
||||
#ifdef CONFIG_MEDIATEK_MULTI_MTD_LAYOUT
|
||||
const char *ubi_boot_part = PART_UBI_NAME;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CMD_UBI
|
||||
struct mtd_info *mtd_kernel;
|
||||
|
||||
Reference in New Issue
Block a user