Page MenuHomeFreeBSD

D41545.id126430.diff
No OneTemporary

D41545.id126430.diff

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -582,6 +582,17 @@
UNIVERSE_TARGET?= buildworld
KERNSRCDIR?= ${.CURDIR}/sys
+.if ${.MAKE.OS} == "FreeBSD"
+UNIVERSE_TOOLCHAIN_TARGET?= ${MACHINE}
+UNIVERSE_TOOLCHAIN_TARGET_ARCH?= ${MACHINE_ARCH}
+.else
+# MACHINE/MACHINE_ARCH may not follow the same naming as us (e.g. x86_64 vs
+# amd64) on non-FreeBSD. Rather than attempt to sanitise it, arbitrarily use
+# amd64 as the default universe toolchain target.
+UNIVERSE_TOOLCHAIN_TARGET?= amd64
+UNIVERSE_TOOLCHAIN_TARGET_ARCH?= amd64
+.endif
+
targets: .PHONY
@echo "Supported TARGET/TARGET_ARCH pairs for world and kernel targets"
.for target in ${TARGETS}
@@ -613,7 +624,8 @@
@echo "--------------------------------------------------------------"
${_+_}@cd ${.CURDIR}; \
env PATH=${PATH:Q} ${SUB_MAKE} ${JFLAG} kernel-toolchain \
- TARGET=${MACHINE} TARGET_ARCH=${MACHINE_ARCH} \
+ TARGET=${UNIVERSE_TOOLCHAIN_TARGET} \
+ TARGET_ARCH=${UNIVERSE_TOOLCHAIN_TARGET_ARCH} \
OBJTOP="${HOST_OBJTOP}" \
WITHOUT_SYSTEM_COMPILER=yes \
WITHOUT_SYSTEM_LINKER=yes \

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 30, 10:31 AM (1 m, 45 s ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32498478
Default Alt Text
D41545.id126430.diff (1 KB)

Event Timeline