94d1731e73
As reported on the freebsd-announce mailing list[1] FreeBSD is continuing to retire 32-bit support. Remove powerpcspe from build infrastructure. [1] https://lists.freebsd.org/archives/freebsd-announce/2024-February/000117.html Signed-off-by: Minsoo Choo <minsoochoo0122@proton.me> Reviewed by: jhibbits, emaste Pull request: https://github.com/freebsd/freebsd-src/pull/1914
36 lines
1.3 KiB
Makefile
36 lines
1.3 KiB
Makefile
|
|
.if ${MACHINE_CPUARCH} == "aarch64" || \
|
|
${MACHINE_CPUARCH} == "arm" || \
|
|
${MACHINE_ARCH} == "amd64" || \
|
|
${MACHINE_ARCH} == "i386" || \
|
|
${MACHINE_ARCH} == "powerpc64le" || \
|
|
${MACHINE_CPUARCH} == "riscv"
|
|
TARGET_ENDIANNESS= 1234
|
|
CAP_MKDB_ENDIAN= -l
|
|
LOCALEDEF_ENDIAN= -l
|
|
.elif ${MACHINE_ARCH} == "powerpc" || \
|
|
${MACHINE_ARCH} == "powerpc64"
|
|
TARGET_ENDIANNESS= 4321
|
|
CAP_MKDB_ENDIAN= -b
|
|
LOCALEDEF_ENDIAN= -b
|
|
.elif ${.MAKE.OS} == "FreeBSD"
|
|
.error Don't know the endian of this architecture
|
|
.else
|
|
#
|
|
# During bootstrapping on !FreeBSD OSes, we need to define some value. Short of
|
|
# having an exhaustive list for all variants of Linux and MacOS we simply do not
|
|
# set TARGET_ENDIANNESS (on Linux) and poison the other variables. They should
|
|
# be unused during the bootstrap phases (apart from one place that's adequately
|
|
# protected in bsd.compiler.mk) where we're building the bootstrap tools.
|
|
#
|
|
.if ${.MAKE.OS} == "Darwin"
|
|
# We do assume the endianness on macOS because Apple's modern hardware is all
|
|
# little-endian. This might need revisited in the far future, but for the time
|
|
# being Apple Silicon's reign of terror continues. We only set this one up
|
|
# because libcrypto is now built in bootstrap.
|
|
TARGET_ENDIANNESS= 1234
|
|
.endif
|
|
CAP_MKDB_ENDIAN= -B # Poisoned value, invalid flags for both cap_mkdb
|
|
LOCALEDEF_ENDIAN= -B # and localedef.
|
|
.endif
|