Module Name:    src
Committed By:   christos
Date:           Wed Oct 19 00:11:03 UTC 2016

Modified Files:
        src/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc: Makefile

Log Message:
conditionalize bits


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
    src/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/Makefile
diff -u src/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/Makefile:1.4 src/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/Makefile:1.5
--- src/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/Makefile:1.4	Fri Oct 14 12:09:44 2016
+++ src/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/Makefile	Tue Oct 18 20:11:03 2016
@@ -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 @@ regen:
 	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 @@ regen:
                           -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/' \

Reply via email to