Date: Wed, 24 Mar 2004 17:12:45 +0200 From: Ruslan Ermilov <ru@FreeBSD.org> To: Dag-Erling Sm?rgrav <des@des.no> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src Makefile Makefile.inc1 Message-ID: <20040324151245.GD42844@ip.net.ua> In-Reply-To: <xzp65cuwm5k.fsf@dwp.des.no> References: <200403240826.i2O8QMoF087714@repoman.freebsd.org> <xzp65cuwm5k.fsf@dwp.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Wed, Mar 24, 2004 at 11:54:15AM +0100, Dag-Erling Sm?rgrav wrote:
> Ruslan Ermilov <ru@FreeBSD.org> writes:
> > Log:
> > Added the `toolchain' top-level target, which builds enough of
> > buildworld, up to and including libraries, except for actually
> > building the world.
>
> Is 'make toolchain' sufficient preparation for 'make buildkernel'?
>
Even more than that. As it also builds headers and libraries, it's
also sufficient to build any particular part of the world, e.g., by
using these commands:
: # (slow) you do this once
: for target in i386 sparc64 amd64; do
: make toolchain TARGET_ARCH=${target}
: done
: # (fast) you repeat this for each subpart of the world
: for target in i386 sparc64 amd64; do
: for bit in bin/sh usr.bin/awk ...; do
: for stage in obj all; do
: make ${stage} TARGET_ARCH=${target} SUBDIR_OVERRIDE=${bit}
: done
: done
: done
The below patch can be committed if necessary, and used to build
a toolchain sufficient to build fresh kernels.
%%%
Index: Makefile.inc1
===================================================================
RCS file: /home/ncvs/src/Makefile.inc1,v
retrieving revision 1.421
diff -u -p -r1.421 Makefile.inc1
--- Makefile.inc1 24 Mar 2004 08:26:22 -0000 1.421
+++ Makefile.inc1 24 Mar 2004 15:10:37 -0000
@@ -343,7 +343,9 @@ WMAKE_TGTS+= _includes _libraries _depen
buildworld: ${WMAKE_TGTS}
.ORDER: ${WMAKE_TGTS}
-toolchain: ${WMAKE_TGTS:N_depend:Neverything}
+TOOLCHAIN_TGTS= ${WMAKE_TGTS:N_depend:Neverything}
+toolchain: ${TOOLCHAIN_TGTS}
+kernel-toolchain: ${TOOLCHAIN_TGTS:N_includes:N_libraries}
#
# Use this to add checks to installworld/installkernel targets.
%%%
Cheers,
--
Ruslan Ermilov
FreeBSD committer
ru@FreeBSD.org
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAYaVtUkv4P6juNwoRAhrAAKCIcW2EVl2K+FlfMN3ZcQya0wPQaACff5yv
boRm6mYKShFFk1UDF1eukPc=
=aLMR
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040324151245.GD42844>
