Hello,
I am using SDK5 for my code that builds successfully under Linux, but not under windows.
The error occurs in the SDK, not in the application. I am wondering what modifications are needed to migrate from Linux to Windows, apart from editing MakeFile.Windows?
The details are as follow:
build system: Makefile + GNU tools ARM embedded, version 7.3.1
Windows 7 vs UBUNTU
MakeFile.Windows:
GNU_INSTALL_ROOT := C:/Program Files (x86)/GNU Tools ARM Embedded/7 2018-q2-update/bin/ GNU_VERSION := 7.3.1 GNU_PREFIX := arm-none-eabi
The error shown:
Building nrf52832
C:/Aries/Ares-NRF52/nrf52832/makefile.mak:162: *** empty variable name. Stop.
The mentioned line (MakeFile.mak: 162):
$(foreach target, $(TARGETS), $(call define_target, $(target)))
And the macro that is called in the above line:
# $1 target name define define_target $(eval OUTPUT_FILE := $(OUTPUT_DIRECTORY)/$(strip $(1))) \ $(eval $(1): $(OUTPUT_FILE).out $(OUTPUT_FILE).hex $(OUTPUT_FILE).bin \ ; @echo DONE $(strip $(1))) \ $(call prepare_build, $(1), $(OUTPUT_FILE).inc, $(OUTPUT_FILE).out) endef
this macro and subsequent ones look fine, considering that it builds successfully under Linux with the same makefile and GCC version.
I have read and applied all relevant guides and I don't see what is the issue.
As for the last comment, my windows GCC builds our other projects successfully. So, the problem is not in its installation.
Thank you for any idea