tests/driver_xbee: simplified Makefile

This commit is contained in:
Hauke Petersen 2015-11-03 15:27:25 +01:00
parent 770efad28a
commit 77d40d789d

View File

@ -5,17 +5,6 @@ FEATURES_REQUIRED = periph_uart periph_gpio
BOARD_INSUFFICIENT_MEMORY := stm32f0discovery weio
# Define default pin mappings for some boards:
ifneq (,$(filter stm32f0discovery,$(BOARD)))
export XBEE_UART ?= "UART_DEV(0)"
endif
ifneq (,$(filter stm32f4discovery,$(BOARD)))
export XBEE_UART ?= "UART_DEV(0)"
endif
ifneq (,$(filter nucleo-f091,$(BOARD)))
export XBEE_UART ?= "UART_DEV(0)"
endif
USEMODULE += xbee
USEMODULE += gnrc_netif
USEMODULE += auto_init_gnrc_netif
@ -24,12 +13,11 @@ USEMODULE += gnrc_pktdump
USEMODULE += shell
USEMODULE += shell_commands
ifneq (,$(XBEE_UART))
# set default UART to use in case none was defined
XBEE_UART ?= "UART_NUMOF-1"
# export UART to params file
CFLAGS += -DXBEE_UART=$(XBEE_UART)
else
# set default
CFLAGS += -DXBEE_UART="UART_DEV(0)"
endif
# add current directory to the include path. Putting it in CFLAGS will make
# it go to the beginning, before the standard includes.