mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
97a6543c10
This gets rid of a long list of boards with network interfaces and instead let's boards (or MCUs with peripheral network interfaces) provide the netif feature. The apps that before used the long list are not depending on the feature instead (in case of the default example, this is an optional dependency). Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de> Co-authored-by: mewen.berthelot <mewen.berthelot@orange.com>
53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
# name of your application
|
|
APPLICATION = default
|
|
|
|
# If no BOARD is found in the environment, use this default:
|
|
BOARD ?= native
|
|
|
|
# This has to be the absolute path to the RIOT base directory:
|
|
RIOTBASE ?= $(CURDIR)/../..
|
|
|
|
# Uncomment these lines if you want to use platform support from external
|
|
# repositories:
|
|
#RIOTCPU ?= $(CURDIR)/../../RIOT/thirdparty_cpu
|
|
#EXTERNAL_BOARD_DIRS ?= $(CURDIR)/../../RIOT/thirdparty_boards
|
|
|
|
# Uncomment this to enable scheduler statistics for ps:
|
|
#USEMODULE += schedstatistics
|
|
|
|
# If you want to use native with valgrind, you should recompile native
|
|
# with the target all-valgrind instead of all:
|
|
# make -B clean all-valgrind
|
|
|
|
# Comment this out to disable code in RIOT that does safety checking
|
|
# which is not needed in a production environment but helps in the
|
|
# development process:
|
|
DEVELHELP ?= 1
|
|
|
|
# Change this to 0 show compiler invocation lines by default:
|
|
QUIET ?= 1
|
|
|
|
# Modules to include:
|
|
USEMODULE += shell
|
|
USEMODULE += shell_cmds_default
|
|
USEMODULE += ps
|
|
# include and auto-initialize all available sensors
|
|
USEMODULE += saul_default
|
|
|
|
# Use a network interface, if available. The handling is done in
|
|
# Makefile.board.dep, which is processed recursively as part of the dependency
|
|
# resolution.
|
|
FEATURES_OPTIONAL += netif
|
|
|
|
FEATURES_OPTIONAL += periph_rtc
|
|
|
|
ifneq (,$(filter msba2,$(BOARD)))
|
|
USEMODULE += mci
|
|
USEMODULE += random
|
|
endif
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
# Set a custom channel if needed
|
|
include $(RIOTMAKE)/default-radio-settings.inc.mk
|