svn commit: r270163 - projects/bmake/pkgs/pseudo/bootstrap-tools
Simon J. Gerraty
sjg at FreeBSD.org
Tue Aug 19 06:37:33 UTC 2014
Author: sjg
Date: Tue Aug 19 06:37:33 2014
New Revision: 270163
URL: http://svnweb.freebsd.org/changeset/base/270163
Log:
After we finish using src/Makefile.inc1 to bootstrap legacy tools
use it to build the toolchain we actually want.
Modified:
projects/bmake/pkgs/pseudo/bootstrap-tools/Makefile
Modified: projects/bmake/pkgs/pseudo/bootstrap-tools/Makefile
==============================================================================
--- projects/bmake/pkgs/pseudo/bootstrap-tools/Makefile Tue Aug 19 03:51:10 2014 (r270162)
+++ projects/bmake/pkgs/pseudo/bootstrap-tools/Makefile Tue Aug 19 06:37:33 2014 (r270163)
@@ -1,9 +1,8 @@
# $FreeBSD$
# building clang is particularly tedious - so avoid re-inventing wheels
-# the end result is
-all: cross-tools build-tools
+all: bootstrap-toolchain
UPDATE_DEPENDFILE= no
.export UPDATE_DEPENDFILE
@@ -28,6 +27,7 @@ BSARGS= \
SSP_CFLAGS= \
MK_HTML=no MK_INFO=no NO_LINT=yes MK_MAN=no \
-DNO_PIC MK_PROFILE=no -DNO_SHARED \
+ -DWITH_CLANG_BOOTSTRAP \
-DNO_CPU_CFLAGS -DNO_WARNS MK_CTF=no -DEARLY_BUILD MK_TESTS=no
@@ -45,3 +45,22 @@ cross-tools: build-tools
cross-tools build-tools bootstrap-tools: .MAKE .META
${BSENV} ${MAKE} -C ${SRCTOP} -f Makefile.inc1 ${BSARGS} $@
touch $@
+
+# MAKELEVEL=0 so that dirdeps.mk does its thing
+# LEGACY_TOOLS lets us use the bootstaped stuff above
+# TARGET* is so that MK_CLANG gets set correctly.
+BSTCENV= \
+ MAKELEVEL=0 \
+ MACHINE=host \
+ LEGACY_TOOLS=${LEGACY_TOOLS} \
+ TARGET=${HOST_MACHINE} \
+ TARGET_ARCH=${HOST_MACHINE_ARCH}
+
+BSTCARGS= \
+ ${BSARGS} \
+ -DWITH_STAGING \
+ -DWITH_TOOLSDIR
+
+# finally we build toolchain leveraging the above.
+bootstrap-toolchain: .MAKE cross-tools
+ ${BSTCENV} ${MAKE} -C ${.CURDIR:H:H} ${BSTCARGS} toolchain
More information about the svn-src-projects
mailing list