Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164279827
D41590.id126487.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D41590.id126487.diff
View Options
diff --git a/secure/lib/libcrypto/Makefile b/secure/lib/libcrypto/Makefile
--- a/secure/lib/libcrypto/Makefile
+++ b/secure/lib/libcrypto/Makefile
@@ -606,6 +606,20 @@
echo "static const char compiler_flags[] = \"compiler: ${COMPILER_TYPE}\";" ) \
> ${.TARGET}
+buildasm:
+.for arch in aarch64 amd64 arm i386 powerpc powerpc64 powerpc64le
+ make MK_AUTO_OBJ=no -DWITHOUT_AUTO_ASM -DASM_${arch} \
+ -f ${.CURDIR}/Makefile.asm -C ${SRCTOP}/sys/crypto/openssl/${arch} \
+ all
+.endfor
+
+cleanasm:
+.for arch in aarch64 amd64 arm i386 powerpc powerpc64 powerpc64le
+ make MK_AUTO_OBJ=no -DWITHOUT_AUTO_ASM -DASM_${arch} \
+ -f ${.CURDIR}/Makefile.asm -C ${SRCTOP}/sys/crypto/openssl/${arch} \
+ clean
+.endfor
+
.include <bsd.lib.mk>
PICFLAG+= -DOPENSSL_PIC
diff --git a/secure/lib/libcrypto/Makefile.common b/secure/lib/libcrypto/Makefile.common
--- a/secure/lib/libcrypto/Makefile.common
+++ b/secure/lib/libcrypto/Makefile.common
@@ -7,6 +7,7 @@
CFLAGS+= -DB_ENDIAN
.endif
+.ifndef WITHOUT_AUTO_ASM
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "i386"
ASM_${MACHINE_CPUARCH}=
@@ -14,6 +15,7 @@
${MACHINE_ARCH} == "powerpc64le"
ASM_${MACHINE_ARCH}=
.endif
+.endif
.if defined(ASM_${MACHINE_CPUARCH}) || defined(ASM_${MACHINE_ARCH})
CFLAGS+= -DOPENSSL_CPUID_OBJ
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 31, 8:24 AM (17 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35777351
Default Alt Text
D41590.id126487.diff (1 KB)
Attached To
Mode
D41590: libcrypto: Add buildasm and cleanasm targets
Attached
Detach File
Event Timeline
Log In to Comment