Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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=foo -DNO_cross-tools''.
> 
> 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?
> 
With the patch I posted yesterday,

%%%
Index: Makefile.inc1
===================================================================
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+=	_includes _libraries _depend everything
 
+.for __target in ${WMAKE_TGTS}
+.if defined(NO${__target})
+WMAKE_TGTS:=	${WMAKE_TGTS:N${__target}}
+.endif
+.endfor
+
 buildworld: ${WMAKE_TGTS}
 .ORDER: ${WMAKE_TGTS}
 
%%%

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=foo

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=foo
: done


Cheers,
-- 
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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE840ydUkv4P6juNwoRAmjsAJ94UynIyPIhrZ9kjIS6v9s7lfbgawCeOgRf
MkqksdaP1Ij1YXoTlnKbiDU=
=a0MK
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020516060725.GB26715>