mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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>
This commit is contained in:
parent
e390bd5ed0
commit
c777efe3a1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue