diff --git a/radio/src/Makefile b/radio/src/Makefile index 4a39f103b..9abdfbd42 100644 --- a/radio/src/Makefile +++ b/radio/src/Makefile @@ -1945,21 +1945,21 @@ endif lua/lua_exports_taranis.inc: myeeprom.h ../util/luaexport.py @echo "Generating a list of Lua exported constants in lua_exports_taranis.txt" - @$(PARSER) -DPCBTARANIS -DREV9E -DCPUARM -DCPUSTM32 -DLUA -DEXPORT -DVIRTUALINPUTS myeeprom.h | grep LEXP > lua_exports_taranis.txt + @$(PARSER) -DEXPORT $(CPPDEFS) myeeprom.h | grep LEXP > lua_exports_taranis.txt @echo "Parsing and generating C Lua exports in lua/lua_exports_taranis.inc" @$(PYTHON) ../util/luaexport.py $(VERSION) lua_exports_taranis.txt lua/lua_exports_taranis.inc lua_fields_taranis.txt @rm lua_exports_taranis.txt lua/lua_exports_horus.inc: myeeprom.h ../util/luaexport.py @echo "Generating a list of Lua exported constants in lua_exports_horus.txt" - @$(PARSER) -DPCBHORUS -DCPUARM -DCPUSTM32 -DLUA -DEXPORT -DVIRTUALINPUTS myeeprom.h | grep LEXP > lua_exports_horus.txt + @$(PARSER) -DEXPORT $(CPPDEFS) myeeprom.h | grep LEXP > lua_exports_horus.txt @echo "Parsing and generating C Lua exports in lua/lua_exports_horus.inc" @$(PYTHON) ../util/luaexport.py $(VERSION) lua_exports_horus.txt lua/lua_exports_horus.inc lua_fields_horus.txt @rm lua_exports_horus.txt lua/lua_exports_flamenco.inc: myeeprom.h ../util/luaexport.py @echo "Generating a list of Lua exported constants in lua_exports_flamenco.txt" - @$(PARSER) -DPCBFLAMENCO -DCPUARM -DCPUSTM32 -DLUA -DEXPORT -DVIRTUALINPUTS myeeprom.h | grep LEXP > lua_exports_flamenco.txt + @$(PARSER) -DEXPORT $(CPPDEFS) myeeprom.h | grep LEXP > lua_exports_flamenco.txt @echo "Parsing and generating C Lua exports in lua/lua_exports_flamenco.inc" @$(PYTHON) ../util/luaexport.py $(VERSION) lua_exports_flamenco.txt lua/lua_exports_flamenco.inc lua_fields_flamenco.txt @rm lua_exports_flamenco.txt @@ -2122,7 +2122,7 @@ clean_list : $(REMOVE) bitmaps/*/*.lbm $(REMOVE) fonts/*/*.lbm $(REMOVE) translations/*.h - $(REMOVE) lua_exports*.txt lua_fields.txt lua/lua_exports*.inc + $(REMOVE) lua_exports*.txt lua_fields*.txt lua/lua_exports*.inc $(MAKE) -C targets/Taranis/bootloader clean #### Install