提交 c777efe3 编写于 作者: M Matt Porter 提交者: Tom Rini

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: NMatt Porter <mporter@konsulko.com>
上级 e390bd5e
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册