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

116 lines
4.0 KiB
Makefile
Raw Normal View History

2020-05-26 20:50:25 +02:00
include ../Makefile.tests_common
BOARD_WHITELIST += acd52832 \
adafruit-clue \
airfy-beacon \
arduino-duemilanove \
arduino-leonardo \
arduino-mega2560 \
arduino-nano \
arduino-nano-33-ble \
arduino-uno \
atmega1284p \
atmega256rfr2-xpro \
atmega328p \
avr-rss2 \
calliope-mini \
cc1312-launchpad \
cc1352-launchpad \
cc1352p-launchpad \
cc2538dk \
cc2650-launchpad \
cc2650stk \
chronos \
derfmega128 \
derfmega256 \
dwm1001 \
esp32-heltec-lora32-v2 \
esp32-mh-et-live-minikit \
esp32-olimex-evb \
esp32-ttgo-t-beam \
esp32-wemos-lolin-d32-pro \
esp32-wroom-32 \
esp32-wrover-kit \
esp8266-esp-12x \
esp8266-olimex-mod \
esp8266-sparkfun-thing \
feather-nrf52840 \
firefly \
frdm-k22f \
frdm-k64f \
hifive1 \
hifive1b \
ikea-tradfri \
mega-xplained \
microbit \
microduino-corerf \
msb-430 \
msb-430h \
mulle \
nrf51dk \
nrf51dongle \
nrf52832-mdk \
nrf52840-mdk \
nrf52840dk \
nrf52840dongle \
nrf52dk \
nrf6310 \
openlabs-kw41z-mini \
openlabs-kw41z-mini-256kib \
openmote-b \
openmote-cc2538 \
particle-argon \
particle-boron \
particle-xenon \
pba-d-01-kw2x \
phynode-kw41z \
pinetime \
reel \
remote-pa \
remote-reva \
remote-revb \
ruuvitag \
samr21-xpro \
slstk3401a \
slstk3402a \
sltb001a \
slwstk6000b-slwrb4150a \
slwstk6000b-slwrb4162a \
slwstk6220a \
stk3600 \
stk3700 \
teensy31 \
telosb \
thingy52 \
usb-kw41z \
waspmote-pro \
wsn430-v1_3b \
wsn430-v1_4 \
yunjia-nrf51822 \
z1
#
all: checks
2020-05-26 20:50:25 +02:00
include $(RIOTBASE)/Makefile.include
# List of variables to compare between Makefile and Kconfig
_VARS_TO_CHECK = BOARD CPU CPU_MODEL CPU_FAM CPU_CORE CPU_ARCH
2020-07-03 12:52:49 +02:00
# Commands to diff in 'check-values'
_CMDS = $(foreach v,$(_VARS_TO_CHECK), $(if $($(v)),info-debug-variable-$(v)))
_CMDS_CONFIG = $(foreach v,$(_VARS_TO_CHECK), $(if $($(v)),info-debug-variable-CONFIG_$(v)))
# Only compare variables that have a value in Makefile
2020-07-03 12:52:49 +02:00
checks: kconfig-features check-values
kconfig-features: $(KCONFIG_OUT_CONFIG)
@bash -c 'diff <($(MAKE) info-features-provided) \
<($(MAKE) dependency-debug-features-provided-kconfig) || \
(echo "ERROR: Kconfig features mismatch" && exit 1)'
2020-07-03 12:52:49 +02:00
check-values: $(KCONFIG_OUT_CONFIG)
@bash -c '(diff <($(MAKE) $(_CMDS) | sort) \
<($(MAKE) $(_CMDS_CONFIG) | sort) && echo "SUCCESS: $(_CMDS:info-debug-variable-%=%) values match") || \
(echo "ERROR: The value for $(_CMDS:info-debug-variable-%=%) in Kconfig does not match the one in the Makefile" && exit 1)'