29 lines
797 B
Makefile
29 lines
797 B
Makefile
obj-$(CONFIG_LIB_OPENDICE) += \
|
|
clear_memory.o \
|
|
src/android/bcc.o \
|
|
src/cbor_reader.o \
|
|
src/cbor_writer.o \
|
|
src/dice.o \
|
|
src/utils.o \
|
|
|
|
ccflags-$(CONFIG_LIB_OPENDICE) += \
|
|
-I$(srctree)/lib/open-dice/include/\
|
|
-I$(srctree)/lib/open-dice/include-patch/\
|
|
-I$(srctree)/lib/open-dice/include/dice/config/$(CONFIG_LIB_OPENDICE_CONFIG)\
|
|
-Wno-uninitialized
|
|
|
|
ifeq ($(CONFIG_LIB_BORINGSSL),y)
|
|
obj-$(CONFIG_LIB_OPENDICE) += \
|
|
src/boringssl_hash_kdf_ops.o \
|
|
src/boringssl_ed25519_ops.o \
|
|
|
|
ccflags-$(CONFIG_LIB_OPENDICE) += \
|
|
-I$(srctree)/lib/open-dice/include/dice/config/$(CONFIG_LIB_OPENDICE_CONFIG)/\
|
|
-I$(srctree)/lib/boringssl/src/include/\
|
|
-I$(srctree)/lib/boringssl/include/\
|
|
-DOPENSSL_NO_THREADS_CORRUPT_MEMORY_AND_LEAK_SECRETS_IF_THREADED\
|
|
-DOPENSSL_SMALL\
|
|
-DOPENSSL_NO_ASM\
|
|
|
|
endif
|