16fe37d13SRuslan Ermilov 22a6803deSAndrew Turner.if ${MACHINE_CPUARCH} == "aarch64" || \ 3d373e61eSWarner Losh ${MACHINE_CPUARCH} == "arm" || \ 48daa8167SAndrew Turner ${MACHINE_ARCH} == "amd64" || \ 56fe37d13SRuslan Ermilov ${MACHINE_ARCH} == "i386" || \ 6b75abea4SBrandon Bergren ${MACHINE_ARCH} == "powerpc64le" || \ 757707553SWarner Losh ${MACHINE_CPUARCH} == "riscv" 86fe37d13SRuslan ErmilovTARGET_ENDIANNESS= 1234 9f59e5352SBrad DavisCAP_MKDB_ENDIAN= -l 104644f9beSYuri PankovLOCALEDEF_ENDIAN= -l 116fe37d13SRuslan Ermilov.elif ${MACHINE_ARCH} == "powerpc" || \ 1213109bdfSNathan Whitehorn ${MACHINE_ARCH} == "powerpc64" || \ 13ad0a6546SWarner Losh ${MACHINE_ARCH} == "powerpcspe" 146fe37d13SRuslan ErmilovTARGET_ENDIANNESS= 4321 15f59e5352SBrad DavisCAP_MKDB_ENDIAN= -b 164644f9beSYuri PankovLOCALEDEF_ENDIAN= -b 1781ec547fSWarner Losh.elif ${.MAKE.OS} == "FreeBSD" 18*bca92be6SJohn Baldwin.error Don't know the endian of this architecture 1981ec547fSWarner Losh.else 2081ec547fSWarner Losh# 2181ec547fSWarner Losh# During bootstrapping on !FreeBSD OSes, we need to define some value. Short of 2281ec547fSWarner Losh# having an exhaustive list for all variants of Linux and MacOS we simply do not 2381ec547fSWarner Losh# set TARGET_ENDIANNESS and poison the other variables. They should be unused 2481ec547fSWarner Losh# during the bootstrap phases (apart from one place that's adequately protected 2581ec547fSWarner Losh# in bsd.compiler.mk) where we're building the bootstrap tools. 2681ec547fSWarner Losh# 2781ec547fSWarner LoshCAP_MKDB_ENDIAN= -B # Poisoned value, invalid flags for both cap_mkdb 2881ec547fSWarner LoshLOCALEDEF_ENDIAN= -B # and localedef. 296fe37d13SRuslan Ermilov.endif 30