From: Remy Bohmer Date: Thu, 29 Oct 2009 13:24:22 +0000 (+0100) Subject: Repair build fail in case CONFIG_PPC=n and CONFIG_FIT=y X-Git-Tag: v2009.11-rc2~45 X-Git-Url: https://git.sur5r.net/?p=u-boot;a=commitdiff_plain;h=b25e38fc36e13fa8037fa4d37fe909d1d6e6f372 Repair build fail in case CONFIG_PPC=n and CONFIG_FIT=y Signed-off-by: Remy Bohmer --- diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 8f83598561..32fd9bb3f3 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -524,7 +524,7 @@ int do_bootm_subcommand (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) } break; #endif -#ifdef CONFIG_OF_LIBFDT +#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_SYS_BOOTMAPSZ) case BOOTM_STATE_FDT: { ulong bootmap_base = getenv_bootm_low(); diff --git a/include/image.h b/include/image.h index 5a424e6a94..04b62d154f 100644 --- a/include/image.h +++ b/include/image.h @@ -219,12 +219,10 @@ typedef struct bootm_headers { const char *fit_uname_rd; /* init ramdisk subimage node unit name */ int fit_noffset_rd; /* init ramdisk subimage node offset */ -#if defined(CONFIG_PPC) void *fit_hdr_fdt; /* FDT blob FIT image header */ const char *fit_uname_fdt; /* FDT blob subimage node unit name */ int fit_noffset_fdt;/* FDT blob subimage node offset */ #endif -#endif #ifndef USE_HOSTCC image_info_t os; /* os image info */