include ../Makefile.tests_common BOARD_WHITELIST += arduino-duemilanove \ arduino-mega2560 \ arduino-nano \ arduino-uno \ atmega328p \ cc1312-launchpad \ cc1352-launchpad \ cc1352p-launchpad \ cc2650-launchpad \ cc2650stk \ derfmega128 \ ikea-tradfri \ microduino-corerf \ samr21-xpro \ slstk3401a \ slstk3402a \ sltb001a \ slwstk6000b-slwrb4150a \ slwstk6000b-slwrb4162a \ stk3600 \ stk3700 all: checks 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 # Only compare variables that have a value in Makefile checks: kconfig-features $(foreach v,$(_VARS_TO_CHECK), $(if $($(v)),check-value-$(v))) 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)' check-value-%: $(KCONFIG_OUT_CONFIG) @bash -c '(diff <($(MAKE) info-debug-variable-$*) \ <($(MAKE) info-debug-variable-CONFIG_$*) && echo "SUCCESS: $* values match") || \ (echo "ERROR: The value for $* in Kconfig does not match the one in the Makefile" && exit 1)'