This avoids generating temporary *.s files in all of the architectures supported, to the only exception of the SHA implementation.
This is a follow-up to D41589.
Sponsored by: The FreeBSD Foundation
Differential D41668
libcrypto: Further improve Makefile.asm to avoid temporary files khorben_defora.org on Aug 31 2023, 11:13 AM. Authored by Tags None Referenced Files
Subscribers
Details This avoids generating temporary *.s files in all of the architectures supported, to the only exception of the SHA implementation. This is a follow-up to D41589. Sponsored by: The FreeBSD Foundation #!/bin/sh srcdir="$HOME/Projects/FreeBSD/src" objdir="/usr/obj/usr$srcdir" _genasm() { _genasm_arch "arm64" "arm64" "aarch64" && _genasm_arch "arm" && _genasm_arch "amd64" && _genasm_arch "i386" && _genasm_arch "powerpc" "powerpc64" && _genasm_arch "powerpc" "powerpc64le" && _genasm_arch "powerpc" } _genasm_arch() { t="$1" if [ $# -eq 3 ]; then ta="$2" tasm="$3" elif [ $# -eq 2 ]; then ta="$2" tasm="$2" else ta="$1" tasm="$1" fi make -f Makefile.asm TARGET="$t" TARGET_ARCH="$ta" "-DASM_$tasm" && mkdir -p "arch/$tasm" && mv -f "$objdir/$t.$ta/secure/lib/libcrypto/"*.S "arch/$tasm/" } _genasm And also now that it's been introduced: src$ (cd secure/lib/libcrypto && make cleanasm buildasm)
Diff Detail
Event Timeline
|