From owner-cvs-src@FreeBSD.ORG Wed Mar 24 07:12:51 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF0B416A4CF; Wed, 24 Mar 2004 07:12:51 -0800 (PST) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D523543D1D; Wed, 24 Mar 2004 07:12:50 -0800 (PST) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.10/8.12.9) with ESMTP id i2OFFt8b058476 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 24 Mar 2004 17:15:56 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i2OFCjmF043623; Wed, 24 Mar 2004 17:12:45 +0200 (EET) (envelope-from ru) Date: Wed, 24 Mar 2004 17:12:45 +0200 From: Ruslan Ermilov To: Dag-Erling Sm?rgrav Message-ID: <20040324151245.GD42844@ip.net.ua> References: <200403240826.i2O8QMoF087714@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zbGR4y+acU1DwHSi" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src Makefile Makefile.inc1 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 15:12:51 -0000 --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 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--