From: Dylan McKay Date: Fri, 7 Jul 2017 12:46:10 +0000 (+1200) Subject: Fix a bug which causes no cores to be compiled X-Git-Tag: v1.6~5 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=9c56faa09995909a1ebc99dbf8cbb67a60f11b7e;p=sx%2Fsimavr.git 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. --- 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 ; \