This was generating a bad config file
Signed-off-by: Michel Pollet <buserror@gmail.com>
@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"; \