cc2538: Fix possible linker script breakage
The conditional definitions in project-conf.h depending on CONTIKI_TARGET_<TARGET_NAME> were ignored at link time, which broke the linker script if it used these definitions, so the flashed applications could crash or malfunction. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
This commit is contained in:
parent
6df2b91a31
commit
bd961d1cd3
|
@ -115,8 +115,7 @@ CUSTOM_RULE_LINK=1
|
|||
cp $< $@
|
||||
|
||||
### This rule is used to generate the correct linker script
|
||||
LDGENFLAGS += $(addprefix -D,$(subst $(COMMA), ,$(DEFINES)))
|
||||
LDGENFLAGS += $(addprefix -I,$(SOURCEDIRS))
|
||||
LDGENFLAGS += $(CFLAGS)
|
||||
LDGENFLAGS += -imacros "contiki-conf.h" -imacros "dev/cc2538-dev.h"
|
||||
LDGENFLAGS += -imacros "dev/flash.h" -imacros "cfs-coffee-arch.h"
|
||||
LDGENFLAGS += -x c -P -E
|
||||
|
|
Loading…
Reference in a new issue