1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/qDSA: fix backend selection log

qDSA as optimized implementations for AVR. The logic to select the optimized
backend predates the architecture features and uses some hand crafted logic.
This updates the logic to select the backend based on the boards architecture
using the feature system instead.
This commit is contained in:
Marian Buschsieweke 2021-03-08 15:45:50 +01:00
parent e8cc3c6194
commit 11ea9ee772
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F
2 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@ ifneq (,$(filter cortex-m23 cortex-m0%,$(CPU_CORE)))
USEMODULE += qDSA_asm
endif
ifneq (,$(filter atmega_common,$(USEMODULE)))
ifneq (,$(filter arch_avr8,$(FEATURES_USED)))
USEMODULE += qDSA_asm
endif

View File

@ -1,11 +1,11 @@
ifneq (,$(filter cortex-m23 cortex-m0%,$(CPU_CORE)))
QDSA_IMPL ?= arm
else
ifneq (,$(filter atmega_common,$(USEMODULE)))
QDSA_IMPL ?= avr
else
QDSA_IMPL ?= cref
endif
ifneq (,$(filter arch_avr8,$(FEATURES_USED)))
QDSA_IMPL ?= avr
else
QDSA_IMPL ?= cref
endif
endif
export QDSA_IMPL