mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-15 17:12:45 +01:00
11ea9ee772
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.
20 lines
429 B
Makefile
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
|