Date: Thu, 16 May 2002 09:07:25 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: "David O'Brien" <obrien@FreeBSD.org>, current@FreeBSD.org Subject: Skipping certain buildworld stages (was: Re: make includes) Message-ID: <20020516060725.GB26715@sunbay.com> In-Reply-To: <20020515151815.B15852@dragon.nuxi.com> References: <20020515161610.U7103-100000@gamplex.bde.org> <XFMail.20020515083728.jhb@FreeBSD.org> <20020515092629.C81859@dragon.nuxi.com> <20020515164322.GA70702@sunbay.com> <20020515151815.B15852@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--NMuMz9nt05w80d4+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 15, 2002 at 03:18:15PM -0700, David O'Brien wrote: > On Wed, May 15, 2002 at 07:43:22PM +0300, Ruslan Ermilov wrote: > > one can easily ``make buildworld TARGET_ARCH=3Dfoo -DNO_cross-tools''. >=20 > I am now doing many cross buildworlds. Is there a target (used with > -DNOCLEAN) to use to save time and resume a build at stage 4? >=20 With the patch I posted yesterday, %%% 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.277 diff -u -r1.277 Makefile.inc1 --- Makefile.inc1 15 May 2002 16:29:44 -0000 1.277 +++ Makefile.inc1 16 May 2002 06:06:09 -0000 @@ -330,6 +330,12 @@ .endif WMAKE_TGTS+=3D _includes _libraries _depend everything =20 +.for __target in ${WMAKE_TGTS} +.if defined(NO${__target}) +WMAKE_TGTS:=3D ${WMAKE_TGTS:N${__target}} +.endif +.endfor + buildworld: ${WMAKE_TGTS} .ORDER: ${WMAKE_TGTS} =20 %%% it's possible to achieve this with: : make \ : -DNO_worldtmp -DNO_bootstrap-tools -DNO_cleanobj -DNO_obj \ : -DNO_build-tools -DNO_cross-tools \ : buildworld TARGET_ARCH=3Dfoo Which in essence is equivalent to this sh(1) script: : cd /whatever/usr/src : for target in _includes _libraries _depend everything; do : make -m `pwd`/share/mk -f Makefile.inc1 \ : ${target} TARGET_ARCH=3Dfoo : done Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --NMuMz9nt05w80d4+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE840ydUkv4P6juNwoRAmjsAJ94UynIyPIhrZ9kjIS6v9s7lfbgawCeOgRf MkqksdaP1Ij1YXoTlnKbiDU= =a0MK -----END PGP SIGNATURE----- --NMuMz9nt05w80d4+-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020516060725.GB26715>