From 0f0fc2d0d042c999aaf6434a5a2cd5096bc32f82 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Tue, 2 May 2023 12:22:00 +0800 Subject: [PATCH] cmd: nmbm: fix legacy image detection Signed-off-by: Shiji Yang --- cmd/nmbm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/nmbm.c b/cmd/nmbm.c index 64c108301e..8598c51310 100644 --- a/cmd/nmbm.c +++ b/cmd/nmbm.c @@ -168,7 +168,7 @@ static int do_nmbm_mtd_boot(cmd_tbl_t *cmdtp, struct mtd_info *mtd, } switch (genimg_get_format((void *)loadaddr)) { -#if defined(CONFIG_LEGACY_IMAGE_FORMAT) +#if defined(CONFIG_IMAGE_FORMAT_LEGACY) case IMAGE_FORMAT_LEGACY: size = image_get_image_size((image_header_t *)loadaddr); image_name = "legacy"; @@ -196,7 +196,7 @@ static int do_nmbm_mtd_boot(cmd_tbl_t *cmdtp, struct mtd_info *mtd, } switch (genimg_get_format((void *)loadaddr)) { -#if defined(CONFIG_LEGACY_IMAGE_FORMAT) +#if defined(CONFIG_IMAGE_FORMAT_LEGACY) case IMAGE_FORMAT_LEGACY: if (print_image_contents) image_print_contents((void *)loadaddr);