Răsfoiți Sursa

Fix use of conditional LMB

This code was not guarded with CONFIG_LMB so failed to build on x86.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass 12 ani în urmă
părinte
comite
75b3afc665
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      common/cmd_bootm.c

+ 1 - 1
common/cmd_bootm.c

@@ -537,7 +537,7 @@ static int do_bootm_subcommand(cmd_tbl_t *cmdtp, int flag, int argc,
 		}
 		}
 			break;
 			break;
 #endif
 #endif
-#if defined(CONFIG_OF_LIBFDT)
+#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_LMB)
 		case BOOTM_STATE_FDT:
 		case BOOTM_STATE_FDT:
 		{
 		{
 			boot_fdt_add_mem_rsv_regions(&images.lmb,
 			boot_fdt_add_mem_rsv_regions(&images.lmb,