Add ifdef check for MAIN_RAM_SIZE
authorCaleb Jamison <cbjamo@gmail.com>
Sun, 31 Mar 2019 15:33:39 +0000 (10:33 -0500)
committerCaleb Jamison <cbjamo@gmail.com>
Sun, 31 Mar 2019 15:33:39 +0000 (10:33 -0500)
litex/soc/software/bios/main.c

index 18215fef0ca38a0559cd452f53135a47ce2ca6b3..ba75f38c9bfdaf600f51d004539334d1c5e691f4 100644 (file)
@@ -425,7 +425,9 @@ int main(int i, char **c)
 #ifdef L2_SIZE
        printf("\e[1mL2\e[0m:        %dKB\n", L2_SIZE/1024);
 #endif
+#ifdef MAIN_RAM_SIZE
        printf("\e[1mMAIN-RAM\e[0m:  %dKB\n", MAIN_RAM_SIZE/1024);
+#endif
        printf("\n");
 
        printf("--========= \e[1mPeripherals init\e[0m ===========--\n");