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 1881ec547fSWarner Losh.elif ${.MAKE.OS} == "FreeBSD" 19*bca92be6SJohn Baldwin.error Don't know the endian of this architecture 2081ec547fSWarner Losh.else 2181ec547fSWarner Losh# 2281ec547fSWarner Losh# During bootstrapping on !FreeBSD OSes, we need to define some value. Short of 2381ec547fSWarner Losh# having an exhaustive list for all variants of Linux and MacOS we simply do not 2481ec547fSWarner Losh# set TARGET_ENDIANNESS and poison the other variables. They should be unused 2581ec547fSWarner Losh# during the bootstrap phases (apart from one place that's adequately protected 2681ec547fSWarner Losh# in bsd.compiler.mk) where we're building the bootstrap tools. 2781ec547fSWarner Losh# 2881ec547fSWarner LoshCAP_MKDB_ENDIAN= -B # Poisoned value, invalid flags for both cap_mkdb 2981ec547fSWarner LoshLOCALEDEF_ENDIAN= -B # and localedef. 306fe37d13SRuslan Ermilov.endif 31