From e969b2fcd5884a6e294ba343b37ba0e9f1f16bef Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Wed, 11 Dec 2019 07:50:32 +0100 Subject: [PATCH] cpu/atmega_common: move common dependencies --- cpu/atmega_common/Makefile.dep | 6 ++++++ makefiles/arch/atmega.inc.mk | 9 --------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/cpu/atmega_common/Makefile.dep b/cpu/atmega_common/Makefile.dep index 15a9c84b87..33fa82c5cf 100644 --- a/cpu/atmega_common/Makefile.dep +++ b/cpu/atmega_common/Makefile.dep @@ -4,6 +4,12 @@ USEMODULE += avr_libc_extra # tell the build system to build the atmega common files USEMODULE += atmega_common +# peripheral drivers are linked into the final binary +USEMODULE += atmega_common_periph + +# the atmel port uses stdio_uart +USEMODULE += stdio_uart + # expand atmega_pcint module ifneq (,$(filter atmega_pcint,$(USEMODULE))) USEMODULE += atmega_pcint0 diff --git a/makefiles/arch/atmega.inc.mk b/makefiles/arch/atmega.inc.mk index db2610b611..24e7cb08dd 100644 --- a/makefiles/arch/atmega.inc.mk +++ b/makefiles/arch/atmega.inc.mk @@ -11,15 +11,6 @@ ASFLAGS += $(CFLAGS_CPU) $(CFLAGS_DBG) LINKFLAGS += $(CFLAGS_CPU) $(CFLAGS_DBG) $(CFLAGS_OPT) -static -lgcc -e reset_handler -Wl,--gc-sections OFLAGS += -j .text -j .data -# Tell the build system that the CPU depends on the atmega common files: -USEMODULE += atmega_common - -# export the peripheral drivers to be linked into the final binary -USEMODULE += atmega_common_periph - -# the atmel port uses stdio_uart -USEMODULE += stdio_uart - # explicitly tell the linker to link the syscalls and startup code. # without this the interrupt vectors will not be linked correctly! UNDEF += $(BINDIR)/atmega_common/startup.o