16fe37d13SRuslan Ermilov# $FreeBSD$ 26fe37d13SRuslan Ermilov 32a6803deSAndrew Turner.if ${MACHINE_CPUARCH} == "aarch64" || \ 4d373e61eSWarner Losh ${MACHINE_CPUARCH} == "arm" || \ 58daa8167SAndrew Turner ${MACHINE_ARCH} == "amd64" || \ 66fe37d13SRuslan Ermilov ${MACHINE_ARCH} == "i386" || \ 7b75abea4SBrandon Bergren ${MACHINE_ARCH} == "powerpc64le" || \ 857707553SWarner Losh ${MACHINE_CPUARCH} == "riscv" 96fe37d13SRuslan ErmilovTARGET_ENDIANNESS= 1234 10f59e5352SBrad DavisCAP_MKDB_ENDIAN= -l 114644f9beSYuri PankovLOCALEDEF_ENDIAN= -l 126fe37d13SRuslan Ermilov.elif ${MACHINE_ARCH} == "powerpc" || \ 1313109bdfSNathan Whitehorn ${MACHINE_ARCH} == "powerpc64" || \ 14ad0a6546SWarner Losh ${MACHINE_ARCH} == "powerpcspe" 156fe37d13SRuslan ErmilovTARGET_ENDIANNESS= 4321 16f59e5352SBrad DavisCAP_MKDB_ENDIAN= -b 174644f9beSYuri PankovLOCALEDEF_ENDIAN= -b 18*81ec547fSWarner Losh.elif ${.MAKE.OS} == "FreeBSD" 19ad0a6546SWarner Losh.error "Don't know the endian of this architecture" 20*81ec547fSWarner Losh.else 21*81ec547fSWarner Losh# 22*81ec547fSWarner Losh# During bootstrapping on !FreeBSD OSes, we need to define some value. Short of 23*81ec547fSWarner Losh# having an exhaustive list for all variants of Linux and MacOS we simply do not 24*81ec547fSWarner Losh# set TARGET_ENDIANNESS and poison the other variables. They should be unused 25*81ec547fSWarner Losh# during the bootstrap phases (apart from one place that's adequately protected 26*81ec547fSWarner Losh# in bsd.compiler.mk) where we're building the bootstrap tools. 27*81ec547fSWarner Losh# 28*81ec547fSWarner LoshCAP_MKDB_ENDIAN= -B # Poisoned value, invalid flags for both cap_mkdb 29*81ec547fSWarner LoshLOCALEDEF_ENDIAN= -B # and localedef. 306fe37d13SRuslan Ermilov.endif 31