From 5cc62437da463a1ade63cc84888f6324a6ecf08a Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Tue, 30 Mar 2021 10:50:09 +0200 Subject: [PATCH] cpu/avr8_common: move ldscripts from atmega_common The ldscripts are already used for both ATmega and ATxmega, so it makes sense to have them in the common folder. --- cpu/{atmega_common => avr8_common}/ldscripts/xfa.ld | 0 makefiles/arch/avr8.inc.mk | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename cpu/{atmega_common => avr8_common}/ldscripts/xfa.ld (100%) diff --git a/cpu/atmega_common/ldscripts/xfa.ld b/cpu/avr8_common/ldscripts/xfa.ld similarity index 100% rename from cpu/atmega_common/ldscripts/xfa.ld rename to cpu/avr8_common/ldscripts/xfa.ld diff --git a/makefiles/arch/avr8.inc.mk b/makefiles/arch/avr8.inc.mk index ed1616f251..0869224145 100644 --- a/makefiles/arch/avr8.inc.mk +++ b/makefiles/arch/avr8.inc.mk @@ -18,7 +18,7 @@ CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT) ASFLAGS += $(CFLAGS_CPU) $(CFLAGS_DBG) # needed for xfa support. Order is important. -LINKFLAGS += -T$(RIOTCPU)/atmega_common/ldscripts/xfa.ld +LINKFLAGS += -T$(RIOTCPU)/avr8_common/ldscripts/xfa.ld LINKFLAGS += $(CFLAGS_CPU) $(CFLAGS_DBG) $(CFLAGS_OPT) -static -lgcc -e reset_handler -Wl,--gc-sections