Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154780344
D41545.id126430.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D41545.id126430.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D41545: Makefile: Support universe-toolchain on non-FreeBSD
Attached
Detach File
Event Timeline
Log In to Comment