From 9c56faa09995909a1ebc99dbf8cbb67a60f11b7e Mon Sep 17 00:00:00 2001 From: Dylan McKay Date: Sat, 8 Jul 2017 00:46:10 +1200 Subject: [PATCH] Fix a bug which causes no cores to be compiled On some systems, including some Mac and some Linux computers, the sim_core_config.h file will not have any cores compiled on it. Here is the patch from #20. I have tested this on Linux, and there are many people on #20 reporting that it works perfectly on Mac. --- simavr/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simavr/Makefile b/simavr/Makefile index c4e009d..f7eccca 100644 --- a/simavr/Makefile +++ b/simavr/Makefile @@ -176,7 +176,7 @@ sim_core_decl.h: sim_core_config.h $(cores) Makefile for core in $$(grep -r avr_kind_t cores/|awk -F '[ :]' '{print $$1 "=" $$3;}') ; do \ file=$${core/=*}; global=$${core/*=}; \ upper=$$global; upper=$${upper/.c}; \ - upper=$$(echo $$upper|tr '[a-z]' '[A-Z]'); \ + upper=$$(echo $$global|tr '[a-z]' '[A-Z]'); \ decl+="#if CONFIG_$$upper\nextern avr_kind_t $$global;\n#endif\n"; \ array+="#if CONFIG_$$upper\n\t&$$global,\n#endif\n"; \ done ; \ -- 2.39.5