examples/openthread: adapt Makefile to new configuration style
This commit is contained in:
parent
86942279a2
commit
f4e9cc5dc0
@ -13,18 +13,20 @@ RIOTBASE ?= $(CURDIR)/../..
|
|||||||
QUIET ?= 1
|
QUIET ?= 1
|
||||||
|
|
||||||
USEPKG += openthread
|
USEPKG += openthread
|
||||||
|
|
||||||
|
# FTD: A Full Thread Device has router functionality compiled in
|
||||||
|
#
|
||||||
|
# MTD: A Minimal Thread Device does not have router functionality
|
||||||
|
# compiled in. As a result, it is not necessary to configure the
|
||||||
|
# routerrole on an MTD. At the same time, an MTD may or may not be sleepy.
|
||||||
|
#
|
||||||
|
# Use FTD by default
|
||||||
OPENTHREAD_TYPE ?= ftd
|
OPENTHREAD_TYPE ?= ftd
|
||||||
ifeq ($(OPENTHREAD_TYPE),mtd)
|
|
||||||
# MTD: A Minimal Thread Device does not have router functionality
|
USEMODULE += openthread-$(OPENTHREAD_TYPE)
|
||||||
# compiled in. As a result, it is not necessary to configure the
|
|
||||||
# routerrole on an MTD. At the same time, an MTD may or may not be sleepy.
|
# Comment the following line in order to disable the OpenThread CLI
|
||||||
USEMODULE += openthread-mtd
|
USEMODULE += openthread-cli
|
||||||
USEMODULE += openthread-cli-mtd
|
|
||||||
else
|
|
||||||
# ftd: A Full Thread Device has router functionality compiled in
|
|
||||||
USEMODULE += openthread-ftd
|
|
||||||
USEMODULE += openthread-cli-ftd
|
|
||||||
endif
|
|
||||||
|
|
||||||
#Define PANID, CHANNEL and UART_BAUDRATE used by default
|
#Define PANID, CHANNEL and UART_BAUDRATE used by default
|
||||||
OPENTHREAD_PANID ?= 0xbeef
|
OPENTHREAD_PANID ?= 0xbeef
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user