Commit 242ec6c14416147e73b95ebc17ed0a67f934fa1c
authorMichel Pollet <buserror@gmail.com>
Wed, 13 Aug 2014 22:11:26 +0000 (23:11 +0100)
committerMichel Pollet <buserror@gmail.com>
Wed, 13 Aug 2014 22:13:39 +0000 (23:13 +0100)
This was generating a bad config file

Signed-off-by: Michel Pollet <buserror@gmail.com>
simavr/Makefile

index 30084c78e0cc015082a79c12f7c4840ef8e7e4e1..fb2ac49484cc54605a422ca279e9962fa64f1bc3 100644 (file)
@@ -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"; \