2022-02-24 13:19:42 +01:00
|
|
|
INCLUDES += -I$(PKGDIRBASE)/libcose/include \
|
|
|
|
-I$(RIOTBASE)/pkg/libcose/include \
|
|
|
|
#
|
|
|
|
|
2018-04-16 19:01:27 +02:00
|
|
|
CFLAGS += -DUSE_CBOR_CONTEXT
|
|
|
|
|
|
|
|
ifneq (,$(filter libcose_crypt_hacl,$(USEMODULE)))
|
|
|
|
CFLAGS += -DCRYPTO_HACL
|
|
|
|
endif
|
2019-08-12 14:23:10 +02:00
|
|
|
ifneq (,$(filter libcose_crypt_c25519,$(USEMODULE)))
|
|
|
|
CFLAGS += -DCRYPTO_C25519
|
|
|
|
endif
|
2021-05-10 17:35:03 +02:00
|
|
|
ifneq (,$(filter libcose_crypt_tinycrypt,$(USEMODULE)))
|
|
|
|
CFLAGS += -DCRYPTO_TINYCRYPT
|
|
|
|
endif
|
2022-04-25 16:07:08 +02:00
|
|
|
ifneq (,$(filter libcose_crypt_monocypher,$(USEMODULE)))
|
|
|
|
CFLAGS += -DCRYPTO_MONOCYPHER
|
|
|
|
endif
|
2022-02-24 13:19:42 +01:00
|
|
|
ifneq (,$(filter libcose_crypt_riot,$(USEMODULE)))
|
|
|
|
CFLAGS += -DCRYPTO_RIOT
|
|
|
|
DIRS += $(RIOTBASE)/pkg/libcose/contrib
|
|
|
|
endif
|
2022-04-25 16:07:08 +02:00
|
|
|
ifneq (,$(filter libcose_crypt_init,$(USEMODULE)))
|
|
|
|
DIRS += $(RIOTBASE)/pkg/libcose/init
|
|
|
|
endif
|
2018-04-16 19:01:27 +02:00
|
|
|
|
|
|
|
# Declare pseudomodules here to be selfcontained
|
2022-04-25 16:07:08 +02:00
|
|
|
PSEUDOMODULES += libcose_crypt_c25519
|
|
|
|
PSEUDOMODULES += libcose_crypt_hacl
|
|
|
|
PSEUDOMODULES += libcose_crypt_tinycrypt
|
|
|
|
PSEUDOMODULES += libcose_crypt_monocypher
|
|
|
|
PSEUDOMODULES += auto_init_libcose_crypt
|