uboot-mediatek: add support for MT798x platforms
[openwrt/openwrt.git] / package / boot / uboot-mediatek / patches / 200-cmd-add-imsz-and-imszb.patch
index 1759b04899887b096ec86ec0c3fb4efc0d4e7ccf..9031e37f55ad8ea86a47595eb7e0469604c943ec 100644 (file)
@@ -1,9 +1,10 @@
 --- a/cmd/bootm.c
 +++ b/cmd/bootm.c
-@@ -257,6 +257,65 @@ U_BOOT_CMD(
+@@ -257,6 +257,67 @@ U_BOOT_CMD(
  /* iminfo - print header info for a requested image */
  /*******************************************************************/
  #if defined(CONFIG_CMD_IMI)
++#if defined(CONFIG_FIT)
 +#define SECTOR_SHIFT 9
 +static int image_totalsize(struct cmd_tbl *cmdtp, int flag, int argc,
 +                         char *const argv[], short int in_blocks)
@@ -63,6 +64,7 @@
 +      "addr [maxhdrlen] [varname]\n"
 +);
 +
++#endif
  static int do_iminfo(struct cmd_tbl *cmdtp, int flag, int argc,
                     char *const argv[])
  {