X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fimage.c;h=f0f01351fe5b378dc8a98235d70a99e9bdd42ced;hb=04e3c4eb930a761b561cb87f964aa8a5d694c501;hp=0f5274f1be4739379551f8a1691afab4da684d11;hpb=84a07dbfd8e916788d685a4227f9a4e770375ffd;p=oweals%2Fu-boot.git diff --git a/common/image.c b/common/image.c index 0f5274f1be..f0f01351fe 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;