Provide a libcrypto Makefile.inc for riscv64.
authorjsing <jsing@openbsd.org>
Fri, 7 Jul 2023 15:51:03 +0000 (15:51 +0000)
committerjsing <jsing@openbsd.org>
Fri, 7 Jul 2023 15:51:03 +0000 (15:51 +0000)
This is currently no different from the existing behaviour and just pulls
in the C code that would have previously been built. However, it means that
OPENSSL_NO_ASM is no longer being defined by the main libcrypto Makefile,
which in turn will allow us to implement assembly optimisations.

lib/libcrypto/arch/riscv64/Makefile.inc [new file with mode: 0644]

diff --git a/lib/libcrypto/arch/riscv64/Makefile.inc b/lib/libcrypto/arch/riscv64/Makefile.inc
new file mode 100644 (file)
index 0000000..28e2a46
--- /dev/null
@@ -0,0 +1,26 @@
+# $OpenBSD: Makefile.inc,v 1.1 2023/07/07 15:51:03 jsing Exp $
+
+# riscv64 libcrypto build rules
+
+# aes
+SRCS+= aes_core.c
+SRCS+= aes_cbc.c 
+
+# bf
+SRCS+= bf_enc.c
+
+# camellia
+SRCS+= camellia.c
+SRCS+= cmll_cbc.c
+SRCS+= cmll_misc.c
+
+# des
+SRCS+= des_enc.c
+SRCS+= fcrypt_b.c
+
+# rc4
+SRCS+= rc4_enc.c
+SRCS+= rc4_skey.c
+
+# whrlpool
+SRCS+= wp_block.c