Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc condi...



details:   https://anonhg.NetBSD.org/src/rev/afbd0012d0f0
branches:  trunk
changeset: 348447:afbd0012d0f0
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 19 00:11:03 2016 +0000

description:
conditionalize bits

diffstat:

 crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/Makefile |  11 +++++----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 3d3f1851b773 -r afbd0012d0f0 crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/Makefile
--- a/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/Makefile   Wed Oct 19 00:08:41 2016 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/Makefile   Wed Oct 19 00:11:03 2016 +0000
@@ -1,7 +1,8 @@
-#      $NetBSD: Makefile,v 1.4 2016/10/14 16:09:44 spz Exp $
+#      $NetBSD: Makefile,v 1.5 2016/10/19 00:11:03 christos Exp $
 
-.include "bsd.own.mk"
+.include <bsd.own.mk>
 
+BITS?=32
 CRYPTODIST=${NETBSDSRCDIR}/crypto
 .include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
 XLATE=${OPENSSLSRC}/crypto/perlasm/ppc-xlate.pl
@@ -10,14 +11,14 @@
        for i in $$(find ${OPENSSLSRC} -name \*ppc\*.pl); do \
            case $$i in \
            *xlate.pl) ;; \
-           *sha512*) perl $$i 32 sha512; \
+           *sha512*) perl $$i ${BITS} sha512; \
                       sed -e 's/bc     25,0,/bdnz+     /' \
                           -e 's/bclr   14,2/beqlr/' \
                           -e 's/bclr   6,2/bnelr/' \
                           -e 's/bclr   14,0/bltlr/' \
                           -e 's/bclr   12,0/bltlr/' \
                       < sha512 > $$(basename $$i .pl).S; \
-                      perl $$i 32 sha256; \
+                      perl $$i ${BITS} sha256; \
                       sed -e 's/bc     25,0,/bdnz+     /' \
                           -e 's/bclr   14,2/beqlr/' \
                           -e 's/bclr   6,2/bnelr/' \
@@ -25,7 +26,7 @@
                           -e 's/bclr   12,0/bltlr/' \
                       < sha256 > $$(basename $$i .pl | sed s/512/256/).S; \
                       rm -f sha512 sha256;; \
-            *) perl $$i 32 | perl ${XLATE} linux32 | \
+            *) perl $$i ${BITS} | perl ${XLATE} linux${BITS} | \
                sed -e 's/bc    25,0,/bdnz+     /' \
                    -e 's/bclr  14,2/beqlr/' \
                    -e 's/bclr  6,2/bnelr/' \



Home | Main Index | Thread Index | Old Index