mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
15b7f64db3
Fixes i-nucleo-lrwan1 board name in the BOARD_WITHOUT_LORAMAC_RX which disables the RX function of pkg/semtech_loramac and saves 1302 bytes RAM and about 2 kByte of code.
30 lines
580 B
Makefile
30 lines
580 B
Makefile
BOARD ?= b-l072z-lrwan1
|
|
|
|
include ../Makefile.tests_common
|
|
|
|
BOARD_WITHOUT_LORAMAC_RX := \
|
|
arduino-mega2560 \
|
|
i-nucleo-lrwan1 \
|
|
stm32f0discovery \
|
|
waspmote-pro \
|
|
|
|
LORA_DRIVER ?= sx1276
|
|
LORA_REGION ?= EU868
|
|
|
|
USEPKG += semtech-loramac
|
|
USEMODULE += $(LORA_DRIVER)
|
|
|
|
# load loramac RX if board supports it
|
|
ifeq (,$(filter $(BOARD),$(BOARD_WITHOUT_LORAMAC_RX)))
|
|
USEMODULE += semtech_loramac_rx
|
|
endif
|
|
|
|
USEMODULE += auto_init_loramac
|
|
USEMODULE += shell
|
|
USEMODULE += shell_commands
|
|
USEMODULE += fmt
|
|
|
|
FEATURES_OPTIONAL += periph_eeprom
|
|
|
|
include $(RIOTBASE)/Makefile.include
|