From: Remy Bohmer Date: Wed, 28 Oct 2009 22:13:41 +0100 Subject: [U-Boot] [PATCH] Repair build failure in case PPC is not defined and FIT is beng used. In-Reply-To: <1256764421-27799-6-git-send-email-linux@bohmer.net> References: <1256764421-27799-1-git-send-email-linux@bohmer.net> <1256764421-27799-2-git-send-email-linux@bohmer.net> <1256764421-27799-3-git-send-email-linux@bohmer.net> <1256764421-27799-4-git-send-email-linux@bohmer.net> <1256764421-27799-5-git-send-email-linux@bohmer.net> <1256764421-27799-6-git-send-email-linux@bohmer.net> Message-ID: <1256764421-27799-7-git-send-email-linux@bohmer.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Remy Bohmer --- common/cmd_bootm.c | 2 +- common/image.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 8f83598..32fd9bb 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/common/image.c b/common/image.c index 6eaf41e..41b584d 100644 --- a/common/image.c +++ b/common/image.c @@ -1506,9 +1506,11 @@ int boot_get_fdt (int flag, int argc, char *argv[], bootm_headers_t *images, fdt_blob = (char *)data; } +#if defined(CONFIG_PPC) images->fit_hdr_fdt = fit_hdr; images->fit_uname_fdt = fit_uname_fdt; images->fit_noffset_fdt = fdt_noffset; +#endif break; } else #endif -- 1.6.0.4