makefile: Check environment for MEMORY_SIZE/RAM_INIT_FILE
authorAnton Blanchard <anton@linux.ibm.com>
Sat, 14 Aug 2021 09:34:12 +0000 (19:34 +1000)
committerAnton Blanchard <anton@ozlabs.org>
Sat, 14 Aug 2021 09:46:48 +0000 (19:46 +1000)
Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
Makefile

index 46bfdaa4cc6d793f932e2e0dd2072a50a1442a0d..9f308ba356067c754a2eaacbd54352f84a9822cc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -141,8 +141,8 @@ $(soc_dram_tbs): %: $(soc_dram_files) $(soc_dram_sim_files) $(soc_dram_sim_obj_f
 endif
 
 # Hello world
-MEMORY_SIZE=8192
-RAM_INIT_FILE=hello_world/hello_world.hex
+MEMORY_SIZE ?=8192
+RAM_INIT_FILE ?=hello_world/hello_world.hex
 
 # Micropython
 #MEMORY_SIZE=393216