git: ad0a65469ac8 - main - bsd.endian.mk: Remove arm big endian
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 03 Jan 2022 15:00:56 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=ad0a65469ac8db2840857167e731c4314993f97b commit ad0a65469ac8db2840857167e731c4314993f97b Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-01-02 01:11:51 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-01-03 15:00:09 +0000 bsd.endian.mk: Remove arm big endian Remove vestiges of arm big endian support. Also use the more proper MACHINE_CPUARCH instead of MACHINE to test for that here. This leaves powerpc as the only big endian arch. Sponsored by: Netflix --- share/mk/bsd.endian.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/share/mk/bsd.endian.mk b/share/mk/bsd.endian.mk index d77cb709e111..c7e292c9e2f6 100644 --- a/share/mk/bsd.endian.mk +++ b/share/mk/bsd.endian.mk @@ -3,7 +3,7 @@ .if ${MACHINE_CPUARCH} == "aarch64" || \ ${MACHINE_ARCH} == "amd64" || \ ${MACHINE_ARCH} == "i386" || \ - (${MACHINE} == "arm" && ${MACHINE_ARCH:Marm*eb*} == "") || \ + ${MACHINE_CPUARCH} == "arm" || \ ${MACHINE_ARCH} == "powerpc64le" || \ ${MACHINE_CPUARCH} == "riscv" TARGET_ENDIANNESS= 1234 @@ -11,9 +11,10 @@ CAP_MKDB_ENDIAN= -l LOCALEDEF_ENDIAN= -l .elif ${MACHINE_ARCH} == "powerpc" || \ ${MACHINE_ARCH} == "powerpc64" || \ - ${MACHINE_ARCH} == "powerpcspe" || \ - (${MACHINE} == "arm" && ${MACHINE_ARCH:Marm*eb*} != "") + ${MACHINE_ARCH} == "powerpcspe" TARGET_ENDIANNESS= 4321 CAP_MKDB_ENDIAN= -b LOCALEDEF_ENDIAN= -b +.else +.error "Don't know the endian of this architecture" .endif