mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #5891 from kaspar030/improve_module_deps
make: improve module dependencies
This commit is contained in:
commit
bef0231133
49
Makefile.dep
49
Makefile.dep
@ -1,15 +1,13 @@
|
||||
#
|
||||
OLD_USEMODULE := $(sort $(USEMODULE))
|
||||
OLD_USEPKG := $(sort $(USEPKG))
|
||||
|
||||
# include board dependencies
|
||||
-include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
||||
# pull dependencies from drivers
|
||||
include $(RIOTBASE)/drivers/Makefile.dep
|
||||
|
||||
ifneq (,$(filter libcoap,$(USEPKG)))
|
||||
USEMODULE += posix_sockets
|
||||
USEMODULE += gnrc_conn_udp
|
||||
endif
|
||||
|
||||
ifneq (,$(filter ccn-lite,$(USEPKG)))
|
||||
export CFLAGS += -DCCNL_RIOT
|
||||
endif
|
||||
|
||||
ifneq (,$(filter csma_sender,$(USEMODULE)))
|
||||
USEMODULE += random
|
||||
USEMODULE += xtimer
|
||||
@ -360,29 +358,6 @@ ifneq (,$(filter posix_semaphore,$(USEMODULE)))
|
||||
USEMODULE += xtimer
|
||||
endif
|
||||
|
||||
ifneq (,$(filter emb6_conn_udp,$(USEMODULE)))
|
||||
USEMODULE += emb6_sock
|
||||
endif
|
||||
|
||||
ifneq (,$(filter emb6_%,$(USEMODULE)))
|
||||
USEMODULE += emb6
|
||||
endif
|
||||
|
||||
ifneq (,$(filter emb6,$(USEMODULE)))
|
||||
USEPKG += emb6
|
||||
USEMODULE += emb6_bsp
|
||||
USEMODULE += emb6_common
|
||||
USEMODULE += emb6_contrib
|
||||
USEMODULE += emb6_ipv6
|
||||
USEMODULE += emb6_ipv6_multicast
|
||||
USEMODULE += emb6_llsec
|
||||
USEMODULE += emb6_mac
|
||||
USEMODULE += emb6_netdev2
|
||||
USEMODULE += emb6_rpl
|
||||
USEMODULE += emb6_sicslowpan
|
||||
USEMODULE += emb6_utils
|
||||
endif
|
||||
|
||||
ifneq (,$(filter lwip_sixlowpan,$(USEMODULE)))
|
||||
USEMODULE += lwip_ipv6_autoconfig
|
||||
endif
|
||||
@ -561,3 +536,13 @@ ifneq (,$(filter random,$(USEMODULE)))
|
||||
USEMODULE += tinymt32
|
||||
endif
|
||||
endif
|
||||
|
||||
# include package dependencies
|
||||
-include $(USEPKG:%=$(RIOTPKG)/%/Makefile.dep)
|
||||
|
||||
# recursively catch transitive dependencies
|
||||
USEMODULE := $(sort $(USEMODULE))
|
||||
USEPKG := $(sort $(USEPKG))
|
||||
ifneq ($(OLD_USEMODULE) $(OLD_USEPKG),$(USEMODULE) $(USEPKG))
|
||||
include $(RIOTBASE)/Makefile.dep
|
||||
endif
|
||||
|
@ -12,6 +12,3 @@ export OFLAGS = -O binary
|
||||
|
||||
# setup serial terminal
|
||||
include $(RIOTBOARD)/Makefile.include.serial
|
||||
|
||||
# also include optional dependencies
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
1
boards/avsextrem/Makefile.dep
Normal file
1
boards/avsextrem/Makefile.dep
Normal file
@ -0,0 +1 @@
|
||||
include $(RIOTBOARD)/msba2-common/Makefile.dep
|
@ -33,6 +33,3 @@ export DEBUGGER_FLAGS = $(BINDIR) $(ELFFILE)
|
||||
export RESET_FLAGS = $(BINDIR)
|
||||
|
||||
export OBJDUMPFLAGS += --disassemble --source --disassembler-options=force-thumb
|
||||
|
||||
# Include board dependencies
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
@ -11,6 +11,3 @@ include $(RIOTBOARD)/Makefile.include.serial
|
||||
|
||||
# this board uses openocd
|
||||
include $(RIOTBOARD)/Makefile.include.openocd
|
||||
|
||||
# include board dependencies
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
@ -23,8 +23,6 @@ export OPENOCD_PRE_VERIFY_CMDS += \
|
||||
export OPENOCD_EXTRA_INIT
|
||||
export PRE_FLASH_CHECK_SCRIPT = $(RIOTCPU)/kinetis_common/dist/check-fcfield-elf.sh
|
||||
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
||||
# setup serial terminal
|
||||
include $(RIOTBOARD)/Makefile.include.serial
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
USEMODULE += iotlab-common
|
||||
|
||||
include $(RIOTBOARD)/iotlab-common/Makefile.include
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
||||
# add iotlab-a8-m3 include path
|
||||
INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include
|
||||
|
@ -1,5 +1,3 @@
|
||||
include $(RIOTBOARD)/iotlab-common/Makefile.dep
|
||||
|
||||
ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||
USEMODULE += isl29020
|
||||
USEMODULE += lps331ap
|
||||
|
@ -1,7 +1,6 @@
|
||||
USEMODULE += iotlab-common
|
||||
|
||||
include $(RIOTBOARD)/iotlab-common/Makefile.include
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
||||
# add iotlab-m3 include path
|
||||
INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include
|
||||
|
@ -23,7 +23,6 @@ ifeq ($(PORT),)
|
||||
endif
|
||||
export FFLAGS = $(PORT) $(HEXFILE)
|
||||
export TERMFLAGS += -tg -p "$(PORT)"
|
||||
include $(RIOTBOARD)/msba2-common/Makefile.dep
|
||||
|
||||
export INCLUDES += -I$(RIOTBOARD)/msba2-common/include -I$(RIOTBOARD)/msba2-common/drivers/include
|
||||
|
||||
|
1
boards/msba2/Makefile.dep
Normal file
1
boards/msba2/Makefile.dep
Normal file
@ -0,0 +1 @@
|
||||
include $(RIOTBOARD)/msba2-common/Makefile.dep
|
@ -115,6 +115,3 @@ include $(RIOTBOARD)/Makefile.include.openocd
|
||||
|
||||
# setup serial terminal
|
||||
include $(RIOTBOARD)/Makefile.include.serial
|
||||
|
||||
# include board dependencies
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
@ -1,5 +1,3 @@
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
||||
export NATIVEINCLUDES += -DNATIVE_INCLUDES
|
||||
export NATIVEINCLUDES += -I$(RIOTBOARD)/$(BOARD)/include/
|
||||
export NATIVEINCLUDES += -I$(RIOTBASE)/core/include/
|
||||
|
@ -6,9 +6,6 @@ export CPU_MODEL = nrf52xxaa
|
||||
PORT_LINUX ?= /dev/ttyACM0
|
||||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
|
||||
# setup the boards dependencies
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
||||
# setup JLink for flashing
|
||||
export JLINK_DEVICE := nrf52
|
||||
|
||||
|
@ -8,8 +8,5 @@ include $(RIOTBOARD)/Makefile.include.serial
|
||||
# this board uses openocd
|
||||
include $(RIOTBOARD)/Makefile.include.openocd
|
||||
|
||||
# include dependencies
|
||||
include $(RIOTBOARD)/nucleo-common/Makefile.dep
|
||||
|
||||
# add the common header files to the include path
|
||||
INCLUDES += -I$(RIOTBOARD)/nucleo-common/include
|
||||
|
1
boards/nucleo-f072/Makefile.dep
Normal file
1
boards/nucleo-f072/Makefile.dep
Normal file
@ -0,0 +1 @@
|
||||
include $(RIOTBOARD)/nucleo-common/Makefile.dep
|
1
boards/nucleo-f091/Makefile.dep
Normal file
1
boards/nucleo-f091/Makefile.dep
Normal file
@ -0,0 +1 @@
|
||||
include $(RIOTBOARD)/nucleo-common/Makefile.dep
|
1
boards/nucleo-f103/Makefile.dep
Normal file
1
boards/nucleo-f103/Makefile.dep
Normal file
@ -0,0 +1 @@
|
||||
include $(RIOTBOARD)/nucleo-common/Makefile.dep
|
1
boards/nucleo-f207/Makefile.dep
Normal file
1
boards/nucleo-f207/Makefile.dep
Normal file
@ -0,0 +1 @@
|
||||
include $(RIOTBOARD)/nucleo-common/Makefile.dep
|
1
boards/nucleo-f303/Makefile.dep
Normal file
1
boards/nucleo-f303/Makefile.dep
Normal file
@ -0,0 +1 @@
|
||||
include $(RIOTBOARD)/nucleo-common/Makefile.dep
|
1
boards/nucleo-f334/Makefile.dep
Normal file
1
boards/nucleo-f334/Makefile.dep
Normal file
@ -0,0 +1 @@
|
||||
include $(RIOTBOARD)/nucleo-common/Makefile.dep
|
1
boards/nucleo-f401/Makefile.dep
Normal file
1
boards/nucleo-f401/Makefile.dep
Normal file
@ -0,0 +1 @@
|
||||
include $(RIOTBOARD)/nucleo-common/Makefile.dep
|
1
boards/nucleo-f446/Makefile.dep
Normal file
1
boards/nucleo-f446/Makefile.dep
Normal file
@ -0,0 +1 @@
|
||||
include $(RIOTBOARD)/nucleo-common/Makefile.dep
|
@ -25,6 +25,3 @@ endif
|
||||
|
||||
# setup serial terminal
|
||||
include $(RIOTBOARD)/Makefile.include.serial
|
||||
|
||||
# Include board dependencies
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
@ -27,8 +27,6 @@ export OPENOCD_PRE_VERIFY_CMDS += \
|
||||
export OPENOCD_EXTRA_INIT
|
||||
export PRE_FLASH_CHECK_SCRIPT = $(RIOTCPU)/kinetis_common/dist/check-fcfield-elf.sh
|
||||
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
||||
# Add board selector (USB serial) to OpenOCD options if specified.
|
||||
# Use /dist/tools/usb-serial/list-ttys.sh to find out serial number.
|
||||
# Usage: SERIAL="0200..." BOARD="pba-d-01-kw2x" make flash
|
||||
|
1
boards/pttu/Makefile.dep
Normal file
1
boards/pttu/Makefile.dep
Normal file
@ -0,0 +1 @@
|
||||
include $(RIOTBOARD)/msba2-common/Makefile.dep
|
@ -33,6 +33,3 @@ export INCLUDES += -I$(RIOTBOARD)/remote-common/include
|
||||
|
||||
# setup serial terminal
|
||||
include $(RIOTBOARD)/Makefile.include.serial
|
||||
|
||||
# Include board dependencies
|
||||
include $(RIOTBOARD)/remote-common/Makefile.dep
|
||||
|
@ -3,9 +3,6 @@ export CPU = saml21
|
||||
export CPU_MODEL = saml21j18a
|
||||
export CFLAGS += -D__SAML21J18A__
|
||||
|
||||
# include dependencies
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
||||
# setup serial terminal
|
||||
PORT_LINUX ?= /dev/ttyACM0
|
||||
include $(RIOTBOARD)/Makefile.include.serial
|
||||
|
@ -7,9 +7,6 @@ CFLAGS += -D__SAMR21G18A__
|
||||
PORT_LINUX ?= /dev/ttyACM0
|
||||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
|
||||
# setup the boards dependencies
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
||||
# setup serial terminal
|
||||
include $(RIOTBOARD)/Makefile.include.serial
|
||||
|
||||
|
@ -6,9 +6,6 @@ export CPU_MODEL = ezr32wg330f256r60
|
||||
PORT_LINUX ?= /dev/ttyACM0
|
||||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
|
||||
# setup the boards dependencies
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
||||
# setup JLink for flashing
|
||||
export JLINK_DEVICE := ezr32wg330f256
|
||||
include $(RIOTBOARD)/Makefile.include.jlink
|
||||
|
@ -9,9 +9,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial-MXV*)))
|
||||
export BAUD ?= 9600
|
||||
include $(RIOTBOARD)/Makefile.include.serial
|
||||
|
||||
# setup the boards dependencies
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
||||
# flash tool configuration
|
||||
export OFLAGS = -O ihex
|
||||
export FLASHER = $(RIOTBASE)/dist/tools/goodfet/goodfet.bsl
|
||||
|
@ -26,10 +26,6 @@ else
|
||||
# TODO: fix for building under windows
|
||||
endif
|
||||
|
||||
# setup the boards dependencies
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
||||
|
||||
export FLASHER
|
||||
export PORT
|
||||
export DIST_PATH = $(RIOTBOARD)/$(BOARD)/dist
|
||||
|
@ -8,9 +8,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
||||
# setup serial terminal
|
||||
include $(RIOTBOARD)/Makefile.include.serial
|
||||
|
||||
# setup the boards dependencies
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
||||
|
||||
# setup flash tool
|
||||
export OFLAGS = -O ihex
|
||||
export FLASHER = $(RIOTBASE)/dist/tools/goodfet/goodfet.bsl
|
||||
|
@ -1,2 +1,4 @@
|
||||
INCLUDES += -I$(RIOTPKG)/ccn-lite -I$(BINDIRBASE)/pkg/$(BOARD)/ccn-lite/src
|
||||
INCLUDES += -I$(RIOTBASE)/sys/posix/include
|
||||
|
||||
CFLAGS += -DCCNL_RIOT
|
||||
|
22
pkg/emb6/Makefile.dep
Normal file
22
pkg/emb6/Makefile.dep
Normal file
@ -0,0 +1,22 @@
|
||||
ifneq (,$(filter emb6_conn_udp,$(USEMODULE)))
|
||||
USEMODULE += emb6_sock
|
||||
endif
|
||||
|
||||
ifneq (,$(filter emb6_%,$(USEMODULE)))
|
||||
USEMODULE += emb6
|
||||
endif
|
||||
|
||||
ifneq (,$(filter emb6,$(USEMODULE)))
|
||||
USEPKG += emb6
|
||||
USEMODULE += emb6_bsp
|
||||
USEMODULE += emb6_common
|
||||
USEMODULE += emb6_contrib
|
||||
USEMODULE += emb6_ipv6
|
||||
USEMODULE += emb6_ipv6_multicast
|
||||
USEMODULE += emb6_llsec
|
||||
USEMODULE += emb6_mac
|
||||
USEMODULE += emb6_netdev2
|
||||
USEMODULE += emb6_rpl
|
||||
USEMODULE += emb6_sicslowpan
|
||||
USEMODULE += emb6_utils
|
||||
endif
|
4
pkg/libcoap/Makefile.dep
Normal file
4
pkg/libcoap/Makefile.dep
Normal file
@ -0,0 +1,4 @@
|
||||
ifneq (,$(filter libcoap,$(USEPKG)))
|
||||
USEMODULE += posix_sockets
|
||||
USEMODULE += gnrc_conn_udp
|
||||
endif
|
@ -8,6 +8,8 @@ RIOTBASE ?= $(CURDIR)/../..
|
||||
|
||||
BOARD_INSUFFICIENT_MEMORY := msb-430h stm32f0discovery telosb weio z1
|
||||
|
||||
USEPKG += emb6
|
||||
|
||||
USEMODULE += emb6_router
|
||||
USEMODULE += emb6_conn_udp
|
||||
USEMODULE += ipv6_addr
|
||||
|
Loading…
Reference in New Issue
Block a user