Skip to content

Commit

Permalink
cmd: nmbm: fix legacy image detection
Browse files Browse the repository at this point in the history
Signed-off-by: Shiji Yang <[email protected]>
  • Loading branch information
DragonBluep committed May 2, 2023
1 parent 20686fe commit 0f0fc2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/nmbm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0f0fc2d

Please sign in to comment.