Skip to contentSkip to conversation

image: fix build when CONFIG_NR_DRAM_BANKS is disabled on ARM

PATCH New Matt Porter 1 participant 1 message Mar 31, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 common/image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/image.c +1 -1
index a911aa9..13e68a0 100644
@@ -460,7 +460,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;
Signature · 1 line
2.1.4