mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
df7ce1c647
This introduces KCONFIG_BOARD_CONFIG and KCONFIG_CPU_CONFIG variable for boards and CPUs (including common directories) to add default configuration files to be merged. The current approach, as it uses Makefile.features, would include boards first, not allowing them to override CPU configurations.
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
FEATURES_PROVIDED += periph_cpuid
|
|
FEATURES_PROVIDED += periph_pm
|
|
|
|
# TRNG driver is not implemented for mkw41z models
|
|
_KINETIS_CPU_MODELS_WITHOUT_HWRNG += mkw41z256vht4 mkw41z512vht4
|
|
# TRNG driver is not implemented for kl43z models
|
|
_KINETIS_CPU_MODELS_WITHOUT_HWRNG += mkl43z%
|
|
# No HWRNG in mk20d7 devices
|
|
_KINETIS_CPU_MODELS_WITHOUT_HWRNG += mk20dx256vlh7
|
|
|
|
ifneq (,$(filter-out $(_KINETIS_CPU_MODELS_WITHOUT_HWRNG),$(CPU_MODEL)))
|
|
FEATURES_PROVIDED += periph_hwrng
|
|
endif
|
|
|
|
FEATURES_PROVIDED += periph_gpio
|
|
FEATURES_PROVIDED += periph_gpio_irq
|
|
|
|
# Parse parameters from CPU_MODEL using the kinetis-info.mk script in the same
|
|
# directory as this Makefile.
|
|
include $(LAST_MAKEFILEDIR)/kinetis-info.mk
|
|
|
|
ifneq (,$(filter k w,$(CPU_FAM)))
|
|
FEATURES_PROVIDED += periph_flashpage
|
|
FEATURES_PROVIDED += periph_flashpage_pagewise
|
|
endif
|
|
|
|
ifeq (ea,$(CPU_FAM))
|
|
FEATURES_PROVIDED += periph_ics
|
|
else ifeq (l,$(CPU_FAM))
|
|
FEATURES_PROVIDED += periph_mcg_lite
|
|
else
|
|
FEATURES_PROVIDED += periph_mcg
|
|
endif
|
|
|
|
include $(RIOTCPU)/cortexm_common/Makefile.features
|
|
|
|
# This configuration enables modules that are only available when using Kconfig
|
|
# module modelling
|
|
ifeq (1, $(TEST_KCONFIG))
|
|
KCONFIG_CPU_CONFIG += $(RIOTCPU)/kinetis/kinetis.config
|
|
endif
|