From 106ab65d7b9fcab1d6e9dd74155124b248f00ea2 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 29 May 2020 15:53:24 +0200 Subject: [PATCH] cpu/saml21: Check CPU_MODEL to provide periph_hwrng --- cpu/saml21/Makefile.features | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/saml21/Makefile.features b/cpu/saml21/Makefile.features index 40e448fabc..d8e6b4ac12 100644 --- a/cpu/saml21/Makefile.features +++ b/cpu/saml21/Makefile.features @@ -2,7 +2,7 @@ CPU_ARCH = cortex-m0plus CPU_FAM = saml21 # The SAMR30 line of MCUs does not contain a TRNG -BOARDS_WITHOUT_HWRNG += samr30-xpro +CPU_MODELS_WITHOUT_HWRNG += samr30% # Low Power SRAM is *not* retained during Backup Sleep. # It therefore does not fulfill the requirements of the 'backup_ram' interface. @@ -10,7 +10,7 @@ BOARDS_WITHOUT_HWRNG += samr30-xpro # being availiable during deep sleep / backup mode will not be portable here. FEATURES_PROVIDED += backup_ram -ifeq (,$(filter $(BOARDS_WITHOUT_HWRNG),$(BOARD))) +ifeq (,$(filter $(CPU_MODELS_WITHOUT_HWRNG),$(CPU_MODEL))) FEATURES_PROVIDED += periph_hwrng endif