diff options
| author | drahn <> | 2020-06-25 04:29:08 +0000 |
|---|---|---|
| committer | drahn <> | 2020-06-25 04:29:08 +0000 |
| commit | 514ce84a72439fc2ef9cc67602c0d2ebfc6da73d (patch) | |
| tree | 54ee508a4538187fd785727fc8ad1fd1ec975c71 /src/lib/libcrypto/arch/powerpc64/Makefile.inc | |
| parent | a82b35baacf21615569fe12a1f8b2ea24d7b7b89 (diff) | |
| download | openbsd-514ce84a72439fc2ef9cc67602c0d2ebfc6da73d.tar.gz openbsd-514ce84a72439fc2ef9cc67602c0d2ebfc6da73d.tar.bz2 openbsd-514ce84a72439fc2ef9cc67602c0d2ebfc6da73d.zip | |
Intial attempt at powerpc64 libcrypto pieces.
just commit this kettenis@
Diffstat (limited to 'src/lib/libcrypto/arch/powerpc64/Makefile.inc')
| -rw-r--r-- | src/lib/libcrypto/arch/powerpc64/Makefile.inc | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/src/lib/libcrypto/arch/powerpc64/Makefile.inc b/src/lib/libcrypto/arch/powerpc64/Makefile.inc new file mode 100644 index 0000000000..cc42f67c5c --- /dev/null +++ b/src/lib/libcrypto/arch/powerpc64/Makefile.inc | |||
| @@ -0,0 +1,88 @@ | |||
| 1 | # $OpenBSD: Makefile.inc,v 1.1 2020/06/25 04:29:08 drahn Exp $ | ||
| 2 | |||
| 3 | # powerpc-specific libcrypto build rules | ||
| 4 | |||
| 5 | # aes | ||
| 6 | SRCS+= aes_core.c aes_cbc.c | ||
| 7 | # slower than C code | ||
| 8 | #CFLAGS+= -DAES_ASM | ||
| 9 | #SSLASM+= aes aes-ppc aes-ppc | ||
| 10 | # bf | ||
| 11 | SRCS+= bf_enc.c | ||
| 12 | # bn | ||
| 13 | SSLASM+= bn ppc bn-ppc | ||
| 14 | #SSLASM+= bn ppc-mont ppc-mont # bn_mul_mont_int | ||
| 15 | SSLASM+= bn ppc64-mont ppc64-mont # bn_mul_mont_fpu64 | ||
| 16 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | ||
| 17 | # camellia | ||
| 18 | SRCS+= camellia.c cmll_cbc.c cmll_misc.c | ||
| 19 | # des | ||
| 20 | SRCS+= des_enc.c fcrypt_b.c | ||
| 21 | # rc4 | ||
| 22 | SRCS+= rc4_enc.c rc4_skey.c | ||
| 23 | # sha | ||
| 24 | CFLAGS+= -DSHA1_ASM | ||
| 25 | SSLASM+= sha sha1-ppc sha1-ppc | ||
| 26 | CFLAGS+= -DSHA256_ASM | ||
| 27 | SSLASM+= sha sha512-ppc sha256-ppc | ||
| 28 | # whrlpool | ||
| 29 | SRCS+= wp_block.c | ||
| 30 | |||
| 31 | .for dir src dst in ${SSLASM} | ||
| 32 | SRCS+= ${dst}.S | ||
| 33 | GENERATED+=${dst}.S | ||
| 34 | ${dst}.S: ${LCRYPTO_SRC}/${dir}/asm/${src}.pl | ||
| 35 | /usr/bin/perl \ | ||
| 36 | ${LCRYPTO_SRC}/${dir}/asm/${src}.pl linux32 ${.TARGET} > ${.TARGET} | ||
| 37 | .endfor | ||
| 38 | |||
| 39 | #CFLAGS+= -DOPENSSL_CPUID_OBJ # it's commented out in ppccap.c | ||
| 40 | SRCS+= ppccpuid.S ppccap.c | ||
| 41 | GENERATED+=ppccpuid.S | ||
| 42 | ppccpuid.S: ${LCRYPTO_SRC}/ppccpuid.pl | ||
| 43 | /usr/bin/perl \ | ||
| 44 | ${LCRYPTO_SRC}/ppccpuid.pl linux32 > ${.TARGET} | ||
| 45 | # $OpenBSD: Makefile.inc,v 1.1 2020/06/25 04:29:08 drahn Exp $ | ||
| 46 | |||
| 47 | # powerpc-specific libcrypto build rules | ||
| 48 | |||
| 49 | # aes | ||
| 50 | SRCS+= aes_core.c aes_cbc.c | ||
| 51 | # slower than C code | ||
| 52 | #CFLAGS+= -DAES_ASM | ||
| 53 | #SSLASM+= aes aes-ppc aes-ppc | ||
| 54 | # bf | ||
| 55 | SRCS+= bf_enc.c | ||
| 56 | # bn | ||
| 57 | SSLASM+= bn ppc bn-ppc | ||
| 58 | #SSLASM+= bn ppc-mont ppc-mont # bn_mul_mont_int | ||
| 59 | SSLASM+= bn ppc64-mont ppc64-mont # bn_mul_mont_fpu64 | ||
| 60 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | ||
| 61 | # camellia | ||
| 62 | SRCS+= camellia.c cmll_cbc.c cmll_misc.c | ||
| 63 | # des | ||
| 64 | SRCS+= des_enc.c fcrypt_b.c | ||
| 65 | # rc4 | ||
| 66 | SRCS+= rc4_enc.c rc4_skey.c | ||
| 67 | # sha | ||
| 68 | CFLAGS+= -DSHA1_ASM | ||
| 69 | SSLASM+= sha sha1-ppc sha1-ppc | ||
| 70 | CFLAGS+= -DSHA256_ASM | ||
| 71 | SSLASM+= sha sha512-ppc sha256-ppc | ||
| 72 | # whrlpool | ||
| 73 | SRCS+= wp_block.c | ||
| 74 | |||
| 75 | .for dir src dst in ${SSLASM} | ||
| 76 | SRCS+= ${dst}.S | ||
| 77 | GENERATED+=${dst}.S | ||
| 78 | ${dst}.S: ${LCRYPTO_SRC}/${dir}/asm/${src}.pl | ||
| 79 | /usr/bin/perl \ | ||
| 80 | ${LCRYPTO_SRC}/${dir}/asm/${src}.pl linux32 ${.TARGET} > ${.TARGET} | ||
| 81 | .endfor | ||
| 82 | |||
| 83 | #CFLAGS+= -DOPENSSL_CPUID_OBJ # it's commented out in ppccap.c | ||
| 84 | SRCS+= ppccpuid.S ppccap.c | ||
| 85 | GENERATED+=ppccpuid.S | ||
| 86 | ppccpuid.S: ${LCRYPTO_SRC}/ppccpuid.pl | ||
| 87 | /usr/bin/perl \ | ||
| 88 | ${LCRYPTO_SRC}/ppccpuid.pl linux32 > ${.TARGET} | ||
