]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Repair build fail in case CONFIG_PPC=n and CONFIG_FIT=y
authorRemy Bohmer <linux@bohmer.net>
Thu, 29 Oct 2009 13:24:22 +0000 (14:24 +0100)
committerWolfgang Denk <wd@denx.de>
Tue, 24 Nov 2009 21:40:20 +0000 (22:40 +0100)
Signed-off-by: Remy Bohmer <linux@bohmer.net>
common/cmd_bootm.c
include/image.h

index 8f8359856162e47b450c0d41cd779c97981c3778..32fd9bb3f3cdcaa2f9eca34f8803418850c7767e 100644 (file)
@@ -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();
index 5a424e6a9422c74933494710e1ead02a745a19f1..04b62d154fe2555749c8c13680320d7bd6857458 100644 (file)
@@ -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 */