mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards: Use BOARD.config pattern for kconfig
Many simple kconfig configurations are added to boards and brought in with the board name. This makes a common import of these configs so one only requires adding a BOARD.config without having to alter the makefile.
This commit is contained in:
parent
ec0df56b67
commit
ddfe1f6aff
@ -15,9 +15,3 @@ FEATURES_PROVIDED += periph_usbdev
|
|||||||
# Put other features for this board (in alphabetical order)
|
# Put other features for this board (in alphabetical order)
|
||||||
FEATURES_PROVIDED += riotboot
|
FEATURES_PROVIDED += riotboot
|
||||||
FEATURES_PROVIDED += highlevel_stdio
|
FEATURES_PROVIDED += highlevel_stdio
|
||||||
|
|
||||||
# This configuration enables modules that are only available when using Kconfig
|
|
||||||
# module modelling
|
|
||||||
ifeq (1, $(TEST_KCONFIG))
|
|
||||||
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/bastwan.config
|
|
||||||
endif
|
|
||||||
|
@ -11,9 +11,3 @@ FEATURES_PROVIDED += periph_pwm
|
|||||||
FEATURES_PROVIDED += periph_spi
|
FEATURES_PROVIDED += periph_spi
|
||||||
|
|
||||||
FEATURES_PROVIDED += arduino
|
FEATURES_PROVIDED += arduino
|
||||||
|
|
||||||
# This configuration enables modules that are only available when using Kconfig
|
|
||||||
# module modelling
|
|
||||||
ifeq (1, $(TEST_KCONFIG))
|
|
||||||
KCONFIG_ADD_CONFIG += $(BOARDDIR)/esp32-wemos-lolin-d32-pro.config
|
|
||||||
endif
|
|
||||||
|
@ -15,9 +15,3 @@ FEATURES_PROVIDED += esp_rtc_timer_32k
|
|||||||
FEATURES_PROVIDED += esp_jtag
|
FEATURES_PROVIDED += esp_jtag
|
||||||
|
|
||||||
FEATURES_PROVIDED += arduino
|
FEATURES_PROVIDED += arduino
|
||||||
|
|
||||||
# This configuration enables modules that are only available when using Kconfig
|
|
||||||
# module modelling
|
|
||||||
ifeq (1, $(TEST_KCONFIG))
|
|
||||||
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/$(BOARD).config
|
|
||||||
endif
|
|
||||||
|
@ -10,9 +10,3 @@ FEATURES_PROVIDED += periph_rtc
|
|||||||
FEATURES_PROVIDED += periph_rtt
|
FEATURES_PROVIDED += periph_rtt
|
||||||
FEATURES_PROVIDED += periph_spi
|
FEATURES_PROVIDED += periph_spi
|
||||||
FEATURES_PROVIDED += periph_timer
|
FEATURES_PROVIDED += periph_timer
|
||||||
|
|
||||||
# This configuration enables modules that are only available when using Kconfig
|
|
||||||
# module modelling
|
|
||||||
ifeq (1, $(TEST_KCONFIG))
|
|
||||||
KCONFIG_ADD_CONFIG += $(BOARDDIR)/hamilton.config
|
|
||||||
endif
|
|
||||||
|
@ -18,9 +18,3 @@ FEATURES_PROVIDED += periph_rtt
|
|||||||
FEATURES_PROVIDED += periph_spi
|
FEATURES_PROVIDED += periph_spi
|
||||||
FEATURES_PROVIDED += periph_timer
|
FEATURES_PROVIDED += periph_timer
|
||||||
FEATURES_PROVIDED += periph_uart
|
FEATURES_PROVIDED += periph_uart
|
||||||
|
|
||||||
# This configuration enables modules that are only available when using Kconfig
|
|
||||||
# module modelling
|
|
||||||
ifeq (1, $(TEST_KCONFIG))
|
|
||||||
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/mulle.config
|
|
||||||
endif
|
|
||||||
|
@ -6,10 +6,4 @@ FEATURES_PROVIDED += periph_spi
|
|||||||
#FEATURES_PROVIDED += periph_uart
|
#FEATURES_PROVIDED += periph_uart
|
||||||
FEATURES_PROVIDED += vdd_lc_filter_reg1
|
FEATURES_PROVIDED += vdd_lc_filter_reg1
|
||||||
|
|
||||||
# This configuration enables modules that are only available when using Kconfig
|
|
||||||
# module modelling
|
|
||||||
ifeq (1, $(TEST_KCONFIG))
|
|
||||||
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/pinetime.config
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||||
|
@ -5,10 +5,4 @@ FEATURES_PROVIDED += periph_spi
|
|||||||
FEATURES_PROVIDED += periph_uart
|
FEATURES_PROVIDED += periph_uart
|
||||||
FEATURES_PROVIDED += vdd_lc_filter_reg1
|
FEATURES_PROVIDED += vdd_lc_filter_reg1
|
||||||
|
|
||||||
# This configuration enables modules that are only available when using Kconfig
|
|
||||||
# module modelling
|
|
||||||
ifeq (1,$(TEST_KCONFIG))
|
|
||||||
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/ruuvitag.config
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||||
|
@ -1,9 +1,3 @@
|
|||||||
FEATURES_PROVIDED += highlevel_stdio
|
FEATURES_PROVIDED += highlevel_stdio
|
||||||
|
|
||||||
include $(RIOTBOARD)/stm32f429i-disc1/Makefile.features
|
include $(RIOTBOARD)/stm32f429i-disc1/Makefile.features
|
||||||
|
|
||||||
# This configuration enables modules that are only available when using Kconfig
|
|
||||||
# module modelling
|
|
||||||
ifeq (1, $(TEST_KCONFIG))
|
|
||||||
KCONFIG_ADD_CONFIG += $(BOARDDIR)/stm32f429i-disco.config
|
|
||||||
endif
|
|
||||||
|
@ -5,9 +5,3 @@ CPU_MODEL = stm32mp157cac
|
|||||||
FEATURES_PROVIDED += periph_gpio
|
FEATURES_PROVIDED += periph_gpio
|
||||||
FEATURES_PROVIDED += periph_timer
|
FEATURES_PROVIDED += periph_timer
|
||||||
FEATURES_PROVIDED += periph_uart
|
FEATURES_PROVIDED += periph_uart
|
||||||
|
|
||||||
# This configuration enables modules that are only available when using Kconfig
|
|
||||||
# module modelling
|
|
||||||
ifeq (1, $(TEST_KCONFIG))
|
|
||||||
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/$(BOARD).config
|
|
||||||
endif
|
|
||||||
|
@ -14,9 +14,3 @@ FEATURES_PROVIDED += periph_usbdev
|
|||||||
|
|
||||||
# Put other features for this board (in alphabetical order)
|
# Put other features for this board (in alphabetical order)
|
||||||
FEATURES_PROVIDED += riotboot
|
FEATURES_PROVIDED += riotboot
|
||||||
|
|
||||||
# This configuration enables modules that are only available when using Kconfig
|
|
||||||
# module modelling
|
|
||||||
ifeq (1, $(TEST_KCONFIG))
|
|
||||||
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/yarm.config
|
|
||||||
endif
|
|
||||||
|
@ -37,6 +37,12 @@ export KCONFIG_EXTERNAL_PKG_CONFIGS = $(GENERATED_DIR)/Kconfig.external_pkgs
|
|||||||
ifeq (1,$(TEST_KCONFIG))
|
ifeq (1,$(TEST_KCONFIG))
|
||||||
# This file will contain application default configurations
|
# This file will contain application default configurations
|
||||||
KCONFIG_APP_CONFIG = $(APPDIR)/app.config.test
|
KCONFIG_APP_CONFIG = $(APPDIR)/app.config.test
|
||||||
|
# This configuration enables modules that are only available when using Kconfig
|
||||||
|
# module modelling
|
||||||
|
# Bring in all board specific configurations if present
|
||||||
|
ifneq (,$(wildcard $(BOARDDIR)/$(BOARD).config))
|
||||||
|
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/$(BOARD).config
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
# This file will contain application default configurations
|
# This file will contain application default configurations
|
||||||
KCONFIG_APP_CONFIG = $(APPDIR)/app.config
|
KCONFIG_APP_CONFIG = $(APPDIR)/app.config
|
||||||
|
Loading…
Reference in New Issue
Block a user