2 .if ${MACHINE_CPUARCH} == "aarch64" || \
3 ${MACHINE_CPUARCH} == "arm" || \
4 ${MACHINE_ARCH} == "amd64" || \
5 ${MACHINE_ARCH} == "i386" || \
6 ${MACHINE_ARCH} == "powerpc64le" || \
7 ${MACHINE_CPUARCH} == "riscv"
8 TARGET_ENDIANNESS= 1234
11 .elif ${MACHINE_ARCH} == "powerpc" || \
12 ${MACHINE_ARCH} == "powerpc64" || \
13 ${MACHINE_ARCH} == "powerpcspe"
14 TARGET_ENDIANNESS= 4321
17 .elif ${.MAKE.OS} == "FreeBSD"
18 .error Don't know the endian of this architecture
21 # During bootstrapping on !FreeBSD OSes, we need to define some value. Short of
22 # having an exhaustive list for all variants of Linux and MacOS we simply do not
23 # set TARGET_ENDIANNESS and poison the other variables. They should be unused
24 # during the bootstrap phases (apart from one place that's adequately protected
25 # in bsd.compiler.mk) where we're building the bootstrap tools.
27 CAP_MKDB_ENDIAN= -B # Poisoned value, invalid flags for both cap_mkdb
28 LOCALEDEF_ENDIAN= -B # and localedef.