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
--zbGR4y+acU1DwHSi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > Is 'make toolchain' sufficient preparation for 'make buildkernel'? >=20 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=3D${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=3D${target} SUBDIR_OVERRIDE=3D${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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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+=3D _includes _libraries _depen buildworld: ${WMAKE_TGTS} .ORDER: ${WMAKE_TGTS} =20 -toolchain: ${WMAKE_TGTS:N_depend:Neverything} +TOOLCHAIN_TGTS=3D ${WMAKE_TGTS:N_depend:Neverything} +toolchain: ${TOOLCHAIN_TGTS} +kernel-toolchain: ${TOOLCHAIN_TGTS:N_includes:N_libraries} =20 # # Use this to add checks to installworld/installkernel targets. %%% Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --zbGR4y+acU1DwHSi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAYaVtUkv4P6juNwoRAhrAAKCIcW2EVl2K+FlfMN3ZcQya0wPQaACff5yv boRm6mYKShFFk1UDF1eukPc= =aLMR -----END PGP SIGNATURE----- --zbGR4y+acU1DwHSi--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040324151245.GD42844>