cvs commit: src Makefile Makefile.inc1

Ruslan Ermilov ru at FreeBSD.org
Wed Mar 24 07:12:51 PST 2004


On Wed, Mar 24, 2004 at 11:54:15AM +0100, Dag-Erling Sm?rgrav wrote:
> Ruslan Ermilov <ru at 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 at FreeBSD.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20040324/ce2f19f7/attachment.bin


More information about the cvs-all mailing list