From 242ec6c14416147e73b95ebc17ed0a67f934fa1c Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Wed, 13 Aug 2014 23:11:26 +0100 Subject: [PATCH] Makefile: fix for OSX bash variable substitution This was generating a bad config file Signed-off-by: Michel Pollet --- simavr/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simavr/Makefile b/simavr/Makefile index 30084c7..fb2ac49 100644 --- a/simavr/Makefile +++ b/simavr/Makefile @@ -187,7 +187,7 @@ sim_core_decl.h: sim_core_config.h $(cores) Makefile @decl=""; array=""; \ for core in $$(grep -r avr_kind_t cores/|awk -F '[ :]' '{print $$1 "=" $$3;}') ; do \ file=$${core/=*}; global=$${core/*=}; \ - upper=$${file/cores\/sim_}; upper=$${upper/.c}; \ + upper=$$global; upper=$${upper/.c}; \ upper=$$(echo $$upper|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"; \ -- 2.39.5