Skip to content

Commit

Permalink
fixup! cpu/efm32/efr32*: provide required librail information
Browse files Browse the repository at this point in the history
  • Loading branch information
jue89 committed Oct 15, 2022
1 parent 7248a21 commit 9b45279
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 15 deletions.
3 changes: 0 additions & 3 deletions cpu/efm32/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@ endif
# include CPU family module
USEMODULE += cpu_$(CPU_FAM)

# allow the CPU family to pull-in own specific dependencies
-include $(RIOTCPU)/efm32/families/$(CPU_FAM)/Makefile.dep

include $(RIOTCPU)/cortexm_common/Makefile.dep
6 changes: 6 additions & 0 deletions cpu/efm32/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ include $(RIOTCPU)/efm32/efm32-features.mk

CPU_CORE = $(EFM32_ARCHITECTURE)

# allow CPU families to add features individually
-include $(RIOTCPU)/efm32/families/$(CPU_FAM)/Makefile.features

# families without MPU
ifeq (,$(filter efm32zg efm32hg, $(CPU_FAM)))
FEATURES_PROVIDED += cortexm_mpu
Expand All @@ -22,6 +25,9 @@ FEATURES_PROVIDED += periph_wdt
FEATURES_CONFLICT += periph_rtc:periph_rtt
FEATURES_CONFLICT_MSG += "On the EFM32, the RTC and RTT map to the same hardware peripheral."

FEATURES_CONFLICT += cortexm_fpu:gecko_sdk_librail_nonfpu
FEATURES_CONFLICT_MSG += "Using librail with the FPU enabled is not supported on this CPU."

ifeq (1,$(EFM32_TRNG))
FEATURES_PROVIDED += periph_hwrng
endif
Expand Down
1 change: 1 addition & 0 deletions cpu/efm32/families/efr32mg12p/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ config CPU_FAM_EFR32MG12P
select CPU_EFM32_SERIES1
select HAS_PERIPH_HWRNG
select HAS_CORTEXM_MPU
select HAS_GECKO_SDK_LIBRAIL_NONFPU

config MODULE_CPU_EFR32MG12P
bool
Expand Down
4 changes: 0 additions & 4 deletions cpu/efm32/families/efr32mg12p/Makefile.dep

This file was deleted.

1 change: 1 addition & 0 deletions cpu/efm32/families/efr32mg12p/Makefile.features
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FEATURES_PROVIDED += gecko_sdk_librail_nonfpu
1 change: 1 addition & 0 deletions cpu/efm32/families/efr32mg1b/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ config CPU_FAM_EFR32MG1B
select CPU_COMMON_EFM32
select CPU_EFM32_SERIES1
select HAS_CORTEXM_MPU
select HAS_GECKO_SDK_LIBRAIL_NONFPU

config MODULE_CPU_EFR32MG1B
bool
Expand Down
4 changes: 0 additions & 4 deletions cpu/efm32/families/efr32mg1b/Makefile.dep

This file was deleted.

1 change: 1 addition & 0 deletions cpu/efm32/families/efr32mg1b/Makefile.features
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FEATURES_PROVIDED += gecko_sdk_librail_nonfpu
1 change: 1 addition & 0 deletions cpu/efm32/families/efr32mg1p/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ config CPU_FAM_EFR32MG1P
select CPU_COMMON_EFM32
select CPU_EFM32_SERIES1
select HAS_CORTEXM_MPU
select HAS_GECKO_SDK_LIBRAIL_NONFPU

config MODULE_CPU_EFR32MG1P
bool
Expand Down
4 changes: 0 additions & 4 deletions cpu/efm32/families/efr32mg1p/Makefile.dep

This file was deleted.

1 change: 1 addition & 0 deletions cpu/efm32/families/efr32mg1p/Makefile.features
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FEATURES_PROVIDED += gecko_sdk_librail_nonfpu

0 comments on commit 9b45279

Please sign in to comment.