mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 06:53:52 +01:00
tests/slip: simplified Makefile
This commit is contained in:
parent
77d40d789d
commit
1db162adbf
@ -10,19 +10,17 @@ USEMODULE += gnrc_slip
|
||||
USEMODULE += shell
|
||||
USEMODULE += shell_commands
|
||||
|
||||
# set slip parameters to default values if unset
|
||||
SLIP_UART ?= "UART_NUMOF-1"
|
||||
SLIP_BAUDRATE ?= 115200
|
||||
|
||||
# export slip parameters
|
||||
CFLAGS += -DSLIP_UART="UART_DEV($(SLIP_UART))"
|
||||
CFLAGS += -DSLIP_BAUDRATE=$(SLIP_BAUDRATE)
|
||||
|
||||
# add current directory to the include path. Putting it in CFLAGS will make
|
||||
# it go to the beginning, before the standard includes.
|
||||
# That way slip_params.h get's included and auto configuration can pick it up.
|
||||
CFLAGS += -I$(CURDIR)
|
||||
|
||||
ifneq (,$(SLIP_UART))
|
||||
CFLAGS += -DSLIP_UART="UART_DEV($(SLIP_UART))"
|
||||
else
|
||||
# set default
|
||||
CFLAGS += -DSLIP_UART="UART_DEV(UART_NUMOF-1)"
|
||||
endif
|
||||
ifneq (,$(SLIP_BAUDRATE))
|
||||
CFLAGS += -DSLIP_BAUDRATE=$(SLIP_BAUDRATE)
|
||||
else
|
||||
# set default
|
||||
CFLAGS += -DSLIP_BAUDRATE=115200
|
||||
endif
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user