1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/default/Makefile

72 lines
2.2 KiB
Makefile
Raw Normal View History

# name of your application
APPLICATION = default
2014-01-06 10:10:47 +01:00
# 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)/../..
2014-01-06 10:10:47 +01:00
# 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
2014-01-06 10:10:47 +01:00
# Uncomment this to enable scheduler statistics for ps:
#USEMODULE += schedstatistics
2014-01-06 10:10:47 +01:00
# 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
2014-01-06 10:10:47 +01:00
2014-08-01 18:48:16 +02:00
# 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:
2017-11-19 14:12:25 +01:00
DEVELHELP ?= 1
# Change this to 0 show compiler invocation lines by default:
QUIET ?= 1
# Modules to include:
2014-01-06 10:10:47 +01:00
USEMODULE += shell
USEMODULE += shell_cmds_default
2014-01-06 10:10:47 +01:00
USEMODULE += ps
2015-11-18 16:20:58 +01:00
# include and auto-initialize all available sensors
USEMODULE += saul_default
include $(RIOTBASE)/tests/Makefile.boards.netif
ifneq (,$(filter $(BOARD),$(BOARD_PROVIDES_NETIF)))
# Use modules for networking
# gnrc is a meta module including all required, basic gnrc networking modules
USEMODULE += gnrc
# use the default network interface for the board
USEMODULE += netdev_default
# automatically initialize the network interface
USEMODULE += auto_init_gnrc_netif
# shell command to send L2 packets with a simple string
USEMODULE += gnrc_txtsnd
# the application dumps received packets to stdout
USEMODULE += gnrc_pktdump
endif
FEATURES_OPTIONAL += periph_rtc
2014-02-14 14:30:16 +01:00
ifneq (,$(filter msba2,$(BOARD)))
USEMODULE += mci
USEMODULE += random
2014-01-06 10:10:47 +01:00
endif
include $(RIOTBASE)/Makefile.include
ifneq (,$(filter $(BOARD),$(BOARD_PROVIDES_NETIF)))
# We use only the lower layers of the GNRC network stack, hence, we can
# reduce the size of the packet buffer a bit
# Set GNRC_PKTBUF_SIZE via CFLAGS if not being set via Kconfig.
ifndef CONFIG_GNRC_PKTBUF_SIZE
CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=512
endif
endif
# Set a custom channel if needed
include $(RIOTMAKE)/default-radio-settings.inc.mk