2005-02-22 23:29:54 +00:00
|
|
|
|
2020-09-14 16:12:28 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "aarch64" || \
|
2022-01-04 20:57:47 +00:00
|
|
|
${MACHINE_CPUARCH} == "arm" || \
|
2015-03-19 13:53:47 +00:00
|
|
|
${MACHINE_ARCH} == "amd64" || \
|
2005-02-22 23:29:54 +00:00
|
|
|
${MACHINE_ARCH} == "i386" || \
|
2020-09-22 23:49:30 +00:00
|
|
|
${MACHINE_ARCH} == "powerpc64le" || \
|
2022-01-02 01:10:21 +00:00
|
|
|
${MACHINE_CPUARCH} == "riscv"
|
2005-02-22 23:29:54 +00:00
|
|
|
TARGET_ENDIANNESS= 1234
|
2018-06-28 13:48:59 +00:00
|
|
|
CAP_MKDB_ENDIAN= -l
|
2018-10-20 20:51:05 +00:00
|
|
|
LOCALEDEF_ENDIAN= -l
|
2005-02-22 23:29:54 +00:00
|
|
|
.elif ${MACHINE_ARCH} == "powerpc" || \
|
2010-07-10 02:32:50 +00:00
|
|
|
${MACHINE_ARCH} == "powerpc64" || \
|
2022-01-02 01:11:51 +00:00
|
|
|
${MACHINE_ARCH} == "powerpcspe"
|
2005-02-22 23:29:54 +00:00
|
|
|
TARGET_ENDIANNESS= 4321
|
2018-06-28 13:48:59 +00:00
|
|
|
CAP_MKDB_ENDIAN= -b
|
2018-10-20 20:51:05 +00:00
|
|
|
LOCALEDEF_ENDIAN= -b
|
2022-01-04 23:17:17 +00:00
|
|
|
.elif ${.MAKE.OS} == "FreeBSD"
|
2022-02-04 23:59:00 +00:00
|
|
|
.error Don't know the endian of this architecture
|
2022-01-04 23:17:17 +00:00
|
|
|
.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 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.
|
|
|
|
#
|
|
|
|
CAP_MKDB_ENDIAN= -B # Poisoned value, invalid flags for both cap_mkdb
|
|
|
|
LOCALEDEF_ENDIAN= -B # and localedef.
|
2005-02-22 23:29:54 +00:00
|
|
|
.endif
|