mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
2de4b3011b
Rational: the periph_common module is required by (most) other periph drivers and also during startup of the CPU/MCU to run periph_init. The latter is only required if other periph drivers are used, hence periph_common should be a depency of periph_* modules and *not* of the CPU/MCU. This PR fixes that by making periph_common a depency of periph_* and removing the explicit include in the CPU/MCU implementation.
16 lines
424 B
Makefile
16 lines
424 B
Makefile
PSEUDOMODULES += msp430_malloc
|
|
|
|
INCLUDES += -I$(RIOTCPU)/msp430_common/include/
|
|
|
|
# export the CPU model
|
|
MODEL = $(shell echo $(CPU_MODEL) | tr 'a-z' 'A-Z')
|
|
export CFLAGS += -DCPU_MODEL_$(MODEL)
|
|
|
|
export UNDEF += $(BINDIR)/msp430_common/startup.o
|
|
export USEMODULE += msp430_common msp430_common_periph msp430_malloc
|
|
|
|
DEFAULT_MODULE += oneway_malloc
|
|
|
|
# include the msp430 common Makefile
|
|
include $(RIOTMAKE)/arch/msp430.inc.mk
|