head	1.7;
access;
symbols
	netbsd-11-0-RC4:1.7
	netbsd-11-0-RC3:1.7
	netbsd-11-0-RC2:1.7
	netbsd-11-0-RC1:1.7
	perseant-exfatfs-base-20250801:1.7
	netbsd-11:1.7.0.10
	netbsd-11-base:1.7
	netbsd-10-1-RELEASE:1.7
	perseant-exfatfs-base-20240630:1.7
	perseant-exfatfs:1.7.0.8
	perseant-exfatfs-base:1.7
	netbsd-9-4-RELEASE:1.6.4.1
	netbsd-10-0-RELEASE:1.7
	netbsd-10-0-RC6:1.7
	netbsd-10-0-RC5:1.7
	netbsd-10-0-RC4:1.7
	netbsd-10-0-RC3:1.7
	netbsd-10-0-RC2:1.7
	netbsd-10-0-RC1:1.7
	netbsd-10:1.7.0.6
	netbsd-10-base:1.7
	netbsd-9-3-RELEASE:1.6.4.1
	cjep_sun2x-base1:1.7
	cjep_sun2x:1.7.0.4
	cjep_sun2x-base:1.7
	cjep_staticlib_x-base1:1.7
	netbsd-9-2-RELEASE:1.6
	cjep_staticlib_x:1.7.0.2
	cjep_staticlib_x-base:1.7
	netbsd-9-1-RELEASE:1.6
	phil-wifi-20200421:1.6
	phil-wifi-20200411:1.6
	is-mlppp:1.6.0.6
	is-mlppp-base:1.6
	phil-wifi-20200406:1.6
	netbsd-9-0-RELEASE:1.6
	netbsd-9-0-RC2:1.6
	netbsd-9-0-RC1:1.6
	phil-wifi-20191119:1.6
	netbsd-9:1.6.0.4
	netbsd-9-base:1.6
	phil-wifi-20190609:1.6
	pgoyette-compat-merge-20190127:1.2.2.1
	pgoyette-compat-20190127:1.6
	pgoyette-compat-20190118:1.6
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.6
	pgoyette-compat-0930:1.6
	pgoyette-compat-0906:1.6
	pgoyette-compat-0728:1.6
	phil-wifi:1.6.0.2
	phil-wifi-base:1.6
	pgoyette-compat-0625:1.6
	pgoyette-compat-0521:1.6
	pgoyette-compat-0502:1.6
	pgoyette-compat-0422:1.6
	pgoyette-compat-0415:1.6
	pgoyette-compat-0407:1.6
	pgoyette-compat-0330:1.6
	pgoyette-compat-0322:1.6
	pgoyette-compat-0315:1.6
	pgoyette-compat:1.2.0.2
	pgoyette-compat-base:1.2;
locks; strict;
comment	@# @;


1.7
date	2021.04.26.18.06.09;	author christos;	state Exp;
branches;
next	1.6;
commitid	xutT4kHHCRzBxPQC;

1.6
date	2018.03.09.21.49.55;	author mrg;	state Exp;
branches
	1.6.4.1;
next	1.5;
commitid	c63ZjSANXaAAdPtA;

1.5
date	2018.03.09.12.40.23;	author christos;	state Exp;
branches;
next	1.4;
commitid	OAoPfB7PdowMvMtA;

1.4
date	2018.03.09.12.39.30;	author christos;	state Exp;
branches;
next	1.3;
commitid	PcASSB4vjR0kvMtA;

1.3
date	2018.03.07.19.44.31;	author christos;	state Exp;
branches;
next	1.2;
commitid	2rtgiFcaXbAeVytA;

1.2
date	2018.03.05.16.43.50;	author christos;	state Exp;
branches
	1.2.2.1;
next	1.1;
commitid	I1l7ffImOjGdZhtA;

1.1
date	2018.03.04.00.59.44;	author christos;	state Exp;
branches;
next	;
commitid	DDBzUfd4AF3pN4tA;

1.6.4.1
date	2021.08.15.08.58.56;	author martin;	state Exp;
branches;
next	;
commitid	ma96YuflBxHKW25D;

1.2.2.1
date	2018.03.15.09.11.53;	author pgoyette;	state Exp;
branches;
next	;
commitid	lb7w3QtkrVH4axuA;


desc
@@


1.7
log
@Centralize the logic for endian and 64 bit availability.
@
text
@.include "mips.inc"

.if ${MIPS_LE}
.PATH.S: ${.PARSEDIR}

SHA_SRCS += sha1-mips${MIPS_64}.S
SHA_SRCS += sha512-mips${MIPS_64}.S

SHACPPFLAGS = -DSHA1_ASM
.endif

.include "../../sha.inc"
@


1.6
log
@match opening ( with closing ) instead of closing }.
fixes mips builds... partly.
@
text
@d1 3
a3 1
.if empty(MACHINE_ARCH:M*eb)
d6 2
a7 2
SHA_SRCS += sha1-mips${"${COPTS:M*-mabi=64*}" == "":?:64}.S
SHA_SRCS += sha512-mips${"${COPTS:M*-mabi=64*}" == "":?:64}.S
d11 1
@


1.6.4.1
log
@Pull up following revision(s) (requested by tsutsui in ticket #1336):

	crypto/external/bsd/openssl/lib/libcrypto/arch/mips/mips.inc: revision 1.1
	crypto/external/bsd/openssl/lib/libcrypto/arch/mips/mips.inc: revision 1.2
	crypto/external/bsd/openssl/lib/libcrypto/arch/mips/bn.inc: revision 1.7
	crypto/external/bsd/openssl/lib/libcrypto/arch/mips/poly1305.inc: revision 1.5
	crypto/external/bsd/openssl/lib/libcrypto/arch/mips/bn.inc: revision 1.8
	crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/bn.inc: revision 1.3
	crypto/external/bsd/openssl/lib/libcrypto/arch/mips/crypto.inc: revision 1.8
	crypto/external/bsd/openssl/lib/libcrypto/arch/mips/aes.inc: revision 1.6
	crypto/external/bsd/openssl/lib/libcrypto/arch/mips/sha.inc: revision 1.7

Centralize the logic for endian and 64 bit availability.

Handle the compat builds and both the n64 and non n64 variants

PR/56318: Izumi Tsutsui: Limit bn-sparcv8.S to sparc64; breaks
on sparcstation 2 (sun4c)

PR/56318: Izumi Tsutsui: Don't include mips.S for 32 bit mips because it
does not work for mips1
@
text
@d1 1
a1 3
.include "mips.inc"

.if ${MIPS_LE}
d4 2
a5 2
SHA_SRCS += sha1-mips${MIPS_64}.S
SHA_SRCS += sha512-mips${MIPS_64}.S
a8 1

@


1.5
log
@use the proper match pattern
@
text
@d1 1
a1 1
.if empty(MACHINE_ARCH:M*eb}
@


1.4
log
@Disable assembly stubs for the big endian variants of mips (could be more
precise? are all of them broken?)
@
text
@d1 1
a1 1
.if empty(MACHINE_ARCH:M*eh}
@


1.3
log
@only use the 64 bit abi if specified on the command line.
@
text
@d1 1
d8 1
@


1.2
log
@Handle mips64 properly.
@
text
@d3 2
a4 2
SHA_SRCS += sha1-mips${${MACHINE_ARCH:Mmips64*} == "":?:64}.S
SHA_SRCS += sha512-mips${${MACHINE_ARCH:Mmips64*} == "":?:64}.S
@


1.2.2.1
log
@Synch with HEAD
@
text
@a0 1
.if empty(MACHINE_ARCH:M*eb)
d3 2
a4 2
SHA_SRCS += sha1-mips${"${COPTS:M*-mabi=64*}" == "":?:64}.S
SHA_SRCS += sha512-mips${"${COPTS:M*-mabi=64*}" == "":?:64}.S
a6 1
.endif
@


1.1
log
@regen
@
text
@d2 4
a5 1
SHA_SRCS = sha1-mips.S sha512-mips.S
@

