2014-08-21 10:47:43 +00:00
|
|
|
# has to be the first path because it includes openssl/opensslconf.h
|
2020-03-18 15:27:28 +00:00
|
|
|
INC_DIR += $(REP_DIR)/src/lib/openssl/spec/32bit
|
2014-08-21 10:47:43 +00:00
|
|
|
|
2020-03-18 15:27:28 +00:00
|
|
|
CC_OPT += -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m
|
|
|
|
CC_OPT += -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM
|
|
|
|
CC_OPT += -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM
|
|
|
|
|
|
|
|
SRC_C = \
|
2021-01-06 05:43:10 +00:00
|
|
|
armcap_genode.c \
|
2020-03-18 15:27:28 +00:00
|
|
|
bf/bf_enc.c \
|
|
|
|
bn/bn_asm.c \
|
|
|
|
camellia/cmll_cbc.c \
|
|
|
|
camellia/cmll_misc.c \
|
|
|
|
des/des_enc.c \
|
|
|
|
# end of SRC_C
|
|
|
|
|
|
|
|
SRC_S = \
|
|
|
|
aes/asm/aes-armv4.S \
|
|
|
|
aes/asm/aesv8-arm32.S \
|
|
|
|
armv4cpuid.S \
|
|
|
|
bn/asm/armv4-gf2m.S \
|
|
|
|
bn/asm/armv4-mont.S \
|
|
|
|
chacha/asm/chacha-armv4.S \
|
|
|
|
ec/asm/ecp_nistz256-armv4.S \
|
|
|
|
modes/asm/ghash-armv4.S \
|
|
|
|
modes/asm/ghashv8-arm32.S \
|
|
|
|
poly1305/asm/poly1305-armv4.S \
|
|
|
|
sha/asm/keccak1600-armv4.S \
|
|
|
|
sha/asm/sha1-armv4-large.S \
|
|
|
|
sha/asm/sha256-armv4.S \
|
|
|
|
sha/asm/sha512-armv4.S \
|
|
|
|
# end of SRC_S
|
|
|
|
|
|
|
|
vpath %.S $(call select_from_ports,openssl)/src/lib/openssl/crypto
|
2014-08-21 10:47:43 +00:00
|
|
|
|
2021-01-06 05:43:10 +00:00
|
|
|
ifeq ($(filter-out $(SPECS),neon),)
|
|
|
|
vpath armcap_genode.c $(REP_DIR)/src/lib/openssl/crypto/spec/neon
|
|
|
|
else
|
|
|
|
vpath armcap_genode.c $(REP_DIR)/src/lib/openssl/crypto/spec/arm
|
|
|
|
endif
|
|
|
|
|
2014-08-21 10:47:43 +00:00
|
|
|
include $(REP_DIR)/lib/mk/libcrypto.inc
|
2018-01-03 17:40:54 +00:00
|
|
|
|
|
|
|
CC_CXX_WARN_STRICT =
|