Fix unknown target check after r335450.
X-MFC-with: r335450 Pointyhat to: bdrewery Sponsored by: Dell EMC
This commit is contained in:
parent
795c4eaa37
commit
8706983ff6
@ -129,6 +129,40 @@ MACHINE_ABI?= unknown
|
|||||||
MACHINE_TRIPLE?=${MACHINE_ARCH:S/amd64/x86_64/:C/hf$//:S/mipsn32/mips64/}-${MACHINE_ABI}-freebsd12.0
|
MACHINE_TRIPLE?=${MACHINE_ARCH:S/amd64/x86_64/:C/hf$//:S/mipsn32/mips64/}-${MACHINE_ABI}-freebsd12.0
|
||||||
TARGET_ABI?= unknown
|
TARGET_ABI?= unknown
|
||||||
TARGET_TRIPLE?= ${TARGET_ARCH:S/amd64/x86_64/:C/hf$//:S/mipsn32/mips64/}-${TARGET_ABI}-freebsd12.0
|
TARGET_TRIPLE?= ${TARGET_ARCH:S/amd64/x86_64/:C/hf$//:S/mipsn32/mips64/}-${TARGET_ABI}-freebsd12.0
|
||||||
|
KNOWN_ARCHES?= aarch64/arm64 \
|
||||||
|
amd64 \
|
||||||
|
arm \
|
||||||
|
armeb/arm \
|
||||||
|
armv6/arm \
|
||||||
|
armv7/arm \
|
||||||
|
i386 \
|
||||||
|
mips \
|
||||||
|
mipsel/mips \
|
||||||
|
mips64el/mips \
|
||||||
|
mipsn32el/mips \
|
||||||
|
mips64/mips \
|
||||||
|
mipsn32/mips \
|
||||||
|
mipshf/mips \
|
||||||
|
mipselhf/mips \
|
||||||
|
mips64elhf/mips \
|
||||||
|
mips64hf/mips \
|
||||||
|
powerpc \
|
||||||
|
powerpc64/powerpc \
|
||||||
|
powerpcspe/powerpc \
|
||||||
|
riscv64/riscv \
|
||||||
|
riscv64sf/riscv \
|
||||||
|
sparc64
|
||||||
|
|
||||||
|
.if ${TARGET} == ${TARGET_ARCH}
|
||||||
|
_t= ${TARGET}
|
||||||
|
.else
|
||||||
|
_t= ${TARGET_ARCH}/${TARGET}
|
||||||
|
.endif
|
||||||
|
.for _t in ${_t}
|
||||||
|
.if empty(KNOWN_ARCHES:M${_t})
|
||||||
|
.error Unknown target ${TARGET_ARCH}:${TARGET}.
|
||||||
|
.endif
|
||||||
|
.endfor
|
||||||
|
|
||||||
# If all targets are disabled for system llvm then don't expect it to work
|
# If all targets are disabled for system llvm then don't expect it to work
|
||||||
# for cross-builds.
|
# for cross-builds.
|
||||||
@ -525,41 +559,6 @@ PKG_VERSION= ${_REVISION}${EXTRA_REVISION}
|
|||||||
.endif
|
.endif
|
||||||
.endif # !defined(_MKSHOWCONFIG)
|
.endif # !defined(_MKSHOWCONFIG)
|
||||||
|
|
||||||
KNOWN_ARCHES?= aarch64/arm64 \
|
|
||||||
amd64 \
|
|
||||||
arm \
|
|
||||||
armeb/arm \
|
|
||||||
armv6/arm \
|
|
||||||
armv7/arm \
|
|
||||||
i386 \
|
|
||||||
mips \
|
|
||||||
mipsel/mips \
|
|
||||||
mips64el/mips \
|
|
||||||
mipsn32el/mips \
|
|
||||||
mips64/mips \
|
|
||||||
mipsn32/mips \
|
|
||||||
mipshf/mips \
|
|
||||||
mipselhf/mips \
|
|
||||||
mips64elhf/mips \
|
|
||||||
mips64hf/mips \
|
|
||||||
powerpc \
|
|
||||||
powerpc64/powerpc \
|
|
||||||
powerpcspe/powerpc \
|
|
||||||
riscv64/riscv \
|
|
||||||
riscv64sf/riscv \
|
|
||||||
sparc64
|
|
||||||
|
|
||||||
.if ${TARGET} == ${TARGET_ARCH}
|
|
||||||
_t= ${TARGET}
|
|
||||||
.else
|
|
||||||
_t= ${TARGET_ARCH}/${TARGET}
|
|
||||||
.endif
|
|
||||||
.for _t in ${_t}
|
|
||||||
.if empty(KNOWN_ARCHES:M${_t})
|
|
||||||
.error Unknown target ${TARGET_ARCH}:${TARGET}.
|
|
||||||
.endif
|
|
||||||
.endfor
|
|
||||||
|
|
||||||
.if !defined(_MKSHOWCONFIG)
|
.if !defined(_MKSHOWCONFIG)
|
||||||
_CPUTYPE!= MAKEFLAGS= CPUTYPE=${_TARGET_CPUTYPE} ${MAKE} -f /dev/null \
|
_CPUTYPE!= MAKEFLAGS= CPUTYPE=${_TARGET_CPUTYPE} ${MAKE} -f /dev/null \
|
||||||
-m ${.CURDIR}/share/mk MK_AUTO_OBJ=no -V CPUTYPE
|
-m ${.CURDIR}/share/mk MK_AUTO_OBJ=no -V CPUTYPE
|
||||||
|
Loading…
Reference in New Issue
Block a user