diff options
author | Matt Porter <mporter@konsulko.com> | 2015-05-05 15:00:22 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-05-28 08:18:23 -0400 |
commit | c777efe3a1c3ea62123437a30468fa0b17a689b2 (patch) | |
tree | e73060fc39d43ecb78188f3a709c7978ba83a0ff | |
parent | e390bd5ed06fcd29743a3728e9facc4891d094fa (diff) | |
download | u-boot-imx-c777efe3a1c3ea62123437a30468fa0b17a689b2.zip u-boot-imx-c777efe3a1c3ea62123437a30468fa0b17a689b2.tar.gz u-boot-imx-c777efe3a1c3ea62123437a30468fa0b17a689b2.tar.bz2 |
image: fix build when CONFIG_NR_DRAM_BANKS is disabled on ARM
common/image.c currently implicitly depends on CONFIG_NR_DRAM_BANKS
when CONFIG_ARM is enabled. Make this requirement explicit.
Signed-off-by: Matt Porter <mporter@konsulko.com>
-rw-r--r-- | common/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image.c b/common/image.c index 0f5274f..f0f0135 100644 --- a/common/image.c +++ b/common/image.c @@ -462,7 +462,7 @@ phys_size_t getenv_bootm_size(void) tmp = 0; -#if defined(CONFIG_ARM) +#if defined(CONFIG_ARM) && defined(CONFIG_NR_DRAM_BANKS) return gd->bd->bi_dram[0].size - tmp; #else return gd->bd->bi_memsize - tmp; |