2020-05-26 20:50:25 +02:00
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
2020-07-09 10:46:54 +02:00
|
|
|
BOARD_WHITELIST += 6lowpan-clicker \
|
|
|
|
acd52832 \
|
2020-07-03 11:33:58 +02:00
|
|
|
adafruit-clue \
|
|
|
|
airfy-beacon \
|
|
|
|
arduino-duemilanove \
|
2020-06-03 14:09:25 +02:00
|
|
|
arduino-leonardo \
|
2020-06-05 13:04:18 +02:00
|
|
|
arduino-mega2560 \
|
2020-06-03 10:13:29 +02:00
|
|
|
arduino-nano \
|
2020-07-03 11:33:58 +02:00
|
|
|
arduino-nano-33-ble \
|
2020-06-03 10:13:29 +02:00
|
|
|
arduino-uno \
|
2020-06-04 18:33:11 +02:00
|
|
|
atmega1284p \
|
2020-06-04 16:43:57 +02:00
|
|
|
atmega256rfr2-xpro \
|
2020-06-03 10:13:29 +02:00
|
|
|
atmega328p \
|
2020-06-04 16:43:57 +02:00
|
|
|
avr-rss2 \
|
2020-07-15 17:01:26 +02:00
|
|
|
b-l072z-lrwan1 \
|
|
|
|
b-l475e-iot01a \
|
|
|
|
blackpill \
|
|
|
|
blackpill-128kib \
|
|
|
|
bluepill \
|
|
|
|
bluepill-128kib \
|
2020-07-03 11:33:58 +02:00
|
|
|
calliope-mini \
|
2020-06-03 10:13:29 +02:00
|
|
|
cc1312-launchpad \
|
2020-06-05 05:31:20 +02:00
|
|
|
cc1352-launchpad \
|
|
|
|
cc1352p-launchpad \
|
2020-06-24 15:18:55 +02:00
|
|
|
cc2538dk \
|
2020-06-05 05:31:20 +02:00
|
|
|
cc2650-launchpad \
|
|
|
|
cc2650stk \
|
2020-06-24 09:33:24 +02:00
|
|
|
chronos \
|
2020-06-04 14:17:37 +02:00
|
|
|
derfmega128 \
|
2020-06-04 16:43:57 +02:00
|
|
|
derfmega256 \
|
2020-07-03 11:33:58 +02:00
|
|
|
dwm1001 \
|
2020-07-08 19:21:58 +02:00
|
|
|
ek-lm4f120xl \
|
2020-06-08 12:02:51 +02:00
|
|
|
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 \
|
2020-07-15 17:01:26 +02:00
|
|
|
f4vi1 \
|
2020-07-03 11:33:58 +02:00
|
|
|
feather-nrf52840 \
|
2020-06-24 15:18:55 +02:00
|
|
|
firefly \
|
2020-07-15 17:01:26 +02:00
|
|
|
fox \
|
2020-07-02 10:37:04 +02:00
|
|
|
frdm-k22f \
|
|
|
|
frdm-k64f \
|
2020-06-23 21:40:06 +02:00
|
|
|
hifive1 \
|
|
|
|
hifive1b \
|
2020-06-18 16:19:35 +02:00
|
|
|
ikea-tradfri \
|
2020-07-15 17:01:26 +02:00
|
|
|
im880b \
|
|
|
|
i-nucleo-lrwan1 \
|
|
|
|
iotlab-a8-m3 \
|
|
|
|
iotlab-m3 \
|
|
|
|
limifrog-v1 \
|
|
|
|
lobaro-lorabox \
|
|
|
|
lsn50 \
|
|
|
|
maple-mini \
|
2020-06-04 18:33:11 +02:00
|
|
|
mega-xplained \
|
2020-07-03 11:33:58 +02:00
|
|
|
microbit \
|
2020-06-04 14:17:37 +02:00
|
|
|
microduino-corerf \
|
2020-06-24 09:33:24 +02:00
|
|
|
msb-430 \
|
|
|
|
msb-430h \
|
2020-07-15 17:01:26 +02:00
|
|
|
msbiot \
|
2020-07-02 10:37:04 +02:00
|
|
|
mulle \
|
2020-07-03 11:33:58 +02:00
|
|
|
nrf51dk \
|
|
|
|
nrf51dongle \
|
|
|
|
nrf52832-mdk \
|
|
|
|
nrf52840-mdk \
|
|
|
|
nrf52840dk \
|
|
|
|
nrf52840dongle \
|
|
|
|
nrf52dk \
|
|
|
|
nrf6310 \
|
2020-07-15 17:01:26 +02:00
|
|
|
nucleo-f030r8 \
|
|
|
|
nucleo-f031k6 \
|
|
|
|
nucleo-f042k6 \
|
|
|
|
nucleo-f070rb \
|
|
|
|
nucleo-f072rb \
|
|
|
|
nucleo-f091rc \
|
|
|
|
nucleo-f103rb \
|
|
|
|
nucleo-f207zg \
|
|
|
|
nucleo-f302r8 \
|
|
|
|
nucleo-f303k8 \
|
|
|
|
nucleo-f303re \
|
|
|
|
nucleo-f303ze \
|
|
|
|
nucleo-f334r8 \
|
|
|
|
nucleo-f401re \
|
|
|
|
nucleo-f410rb \
|
|
|
|
nucleo-f411re \
|
|
|
|
nucleo-f412zg \
|
|
|
|
nucleo-f413zh \
|
|
|
|
nucleo-f429zi \
|
|
|
|
nucleo-f446re \
|
|
|
|
nucleo-f446ze \
|
|
|
|
nucleo-f722ze \
|
|
|
|
nucleo-f746zg \
|
|
|
|
nucleo-f767zi \
|
|
|
|
nucleo-g474re \
|
|
|
|
nucleo-l031k6 \
|
|
|
|
nucleo-l053r8 \
|
|
|
|
nucleo-l073rz \
|
|
|
|
nucleo-l152re \
|
|
|
|
nucleo-l412kb \
|
|
|
|
nucleo-l432kc \
|
|
|
|
nucleo-l433rc \
|
|
|
|
nucleo-l452re \
|
|
|
|
nucleo-l476rg \
|
|
|
|
nucleo-l496zg \
|
|
|
|
nucleo-l4r5zi \
|
|
|
|
nz32-sc151 \
|
|
|
|
olimexino-stm32 \
|
|
|
|
opencm904 \
|
2020-07-02 10:37:04 +02:00
|
|
|
openlabs-kw41z-mini \
|
|
|
|
openlabs-kw41z-mini-256kib \
|
2020-06-24 15:18:55 +02:00
|
|
|
openmote-b \
|
|
|
|
openmote-cc2538 \
|
2020-07-15 17:01:26 +02:00
|
|
|
p-l496g-cell02 \
|
|
|
|
p-nucleo-wb55 \
|
2020-07-03 11:33:58 +02:00
|
|
|
particle-argon \
|
|
|
|
particle-boron \
|
|
|
|
particle-xenon \
|
2020-07-02 10:37:04 +02:00
|
|
|
pba-d-01-kw2x \
|
|
|
|
phynode-kw41z \
|
2020-07-09 10:46:54 +02:00
|
|
|
pic32-wifire \
|
2020-07-03 11:33:58 +02:00
|
|
|
pinetime \
|
2020-07-15 17:01:26 +02:00
|
|
|
pyboard \
|
2020-07-03 11:33:58 +02:00
|
|
|
reel \
|
2020-06-24 15:18:55 +02:00
|
|
|
remote-pa \
|
|
|
|
remote-reva \
|
|
|
|
remote-revb \
|
2020-07-03 11:33:58 +02:00
|
|
|
ruuvitag \
|
2020-06-18 16:19:35 +02:00
|
|
|
samr21-xpro \
|
|
|
|
slstk3401a \
|
|
|
|
slstk3402a \
|
|
|
|
sltb001a \
|
|
|
|
slwstk6000b-slwrb4150a \
|
|
|
|
slwstk6000b-slwrb4162a \
|
2020-06-29 14:03:02 +02:00
|
|
|
slwstk6220a \
|
2020-07-15 17:01:26 +02:00
|
|
|
spark-core \
|
2020-06-18 16:19:35 +02:00
|
|
|
stk3600 \
|
2020-06-04 18:33:11 +02:00
|
|
|
stk3700 \
|
2020-07-15 17:01:26 +02:00
|
|
|
stm32f030f4-demo \
|
|
|
|
stm32f0discovery \
|
|
|
|
stm32f3discovery \
|
|
|
|
stm32f4discovery \
|
|
|
|
stm32f429i-disc1 \
|
|
|
|
stm32f429i-disco \
|
|
|
|
stm32f723e-disco \
|
|
|
|
stm32f769i-disco \
|
|
|
|
stm32l0538-disco \
|
|
|
|
stm32l476g-disco \
|
2020-07-02 10:37:04 +02:00
|
|
|
teensy31 \
|
2020-06-24 09:33:24 +02:00
|
|
|
telosb \
|
2020-07-03 11:33:58 +02:00
|
|
|
thingy52 \
|
2020-07-15 17:01:26 +02:00
|
|
|
ublox-c030-u201 \
|
2020-07-02 10:37:04 +02:00
|
|
|
usb-kw41z \
|
2020-06-24 09:33:24 +02:00
|
|
|
waspmote-pro \
|
2020-07-15 17:01:26 +02:00
|
|
|
weact-f411ce \
|
2020-07-03 11:33:58 +02:00
|
|
|
yunjia-nrf51822 \
|
2020-06-24 09:33:24 +02:00
|
|
|
z1
|
|
|
|
#
|
2020-05-26 20:51:20 +02:00
|
|
|
|
2020-06-18 15:16:35 +02:00
|
|
|
all: checks
|
2020-05-26 20:50:25 +02:00
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
2020-06-04 12:04:54 +02:00
|
|
|
|
2020-06-18 15:16:35 +02:00
|
|
|
# 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)))
|
|
|
|
|
2020-06-18 15:16:35 +02:00
|
|
|
# Only compare variables that have a value in Makefile
|
2020-07-03 12:52:49 +02:00
|
|
|
checks: kconfig-features check-values
|
2020-06-18 15:16:35 +02:00
|
|
|
|
2020-06-04 12:04:54 +02:00
|
|
|
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-06-18 15:16:35 +02:00
|
|
|
|
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)'
|