mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
af21f15b02
- Add FEATURES_REQUIRED_ANY to dependency-debug: Now `make dependency-debug` by default also stores the contents of `FEATURES_REQUIRED_ANY`. - makefiles/features_check.inc.mk: Break long lines - {tests/minimal,tests/unittests,bootloaders/riotboot}: Disable auto_init_% in addition to auto_init. This works around weird behavior due to the USEMODULE being recursively expended in the first iteration of dependency resolution: Modules added to DEFAULT_MODULE get automatically added to USEMODULE during the first run, but not for subsequent. This should be iron out later on.
35 lines
864 B
Makefile
35 lines
864 B
Makefile
# Default RIOT bootloader
|
|
APPLICATION = riotboot
|
|
|
|
# Default testing board
|
|
BOARD ?= samr21-xpro
|
|
|
|
# Select the boards with riotboot feature
|
|
FEATURES_REQUIRED += riotboot
|
|
|
|
# Set RIOTBOOT_BUILD to indicate a riotboot application build
|
|
RIOTBOOT_BUILD = 1
|
|
# Provide a define to detect if building the bootloader
|
|
CFLAGS += -DRIOTBOOT
|
|
|
|
# Disable unused modules
|
|
CFLAGS += -DNDEBUG -DLOG_LEVEL=LOG_NONE
|
|
DISABLE_MODULE += core_init core_msg core_panic
|
|
DISABLE_MODULE += auto_init auto_init_%
|
|
|
|
# avoid using stdio
|
|
USEMODULE += stdio_null
|
|
|
|
# Include riotboot flash partition functionality
|
|
USEMODULE += riotboot_slot
|
|
|
|
# RIOT codebase
|
|
RIOTBASE ?= $(CURDIR)/../../
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
# limit riotboot bootloader size
|
|
# TODO: Manage to set this variable for boards which already embed a
|
|
# bootloader, currently it will be overwritten
|
|
ROM_LEN := $(RIOTBOOT_LEN)
|