1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-15 21:52:46 +01:00
RIOT/pkg/qDSA/Makefile.include
Marian Buschsieweke 11ea9ee772
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.
2021-03-08 15:45:50 +01:00

20 lines
429 B
Makefile

ifneq (,$(filter cortex-m23 cortex-m0%,$(CPU_CORE)))
QDSA_IMPL ?= arm
else
ifneq (,$(filter arch_avr8,$(FEATURES_USED)))
QDSA_IMPL ?= avr
else
QDSA_IMPL ?= cref
endif
endif
export QDSA_IMPL
INCLUDES += -I$(PKGDIRBASE)/qDSA/$(QDSA_IMPL)
ifeq (cortex-m0plus,$(CPU_CORE))
# There are problems with the LLVM assembler and the Cortex-M0+ instruction
# set with this package
TOOLCHAINS_BLACKLIST += llvm
endif