Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools Use TOOLS_BUILDRUMP=yes to restrict building of tools ...
details: https://anonhg.NetBSD.org/src/rev/37c6c23d629a
branches: trunk
changeset: 784540:37c6c23d629a
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Jan 31 15:22:50 2013 +0000
description:
Use TOOLS_BUILDRUMP=yes to restrict building of tools to those required
for building rump kernels. This cuts down the NetBSD source tree required
by buildrump.sh to a fraction and addresses a size/download time concern
from a person packaging rump kernels for Linux.
No change to the normal case (tested with several -j32/-j64 builds).
reviewed by apb
diffstat:
tools/Makefile | 34 ++++++++++++++++++++++++----------
1 files changed, 24 insertions(+), 10 deletions(-)
diffs (81 lines):
diff -r d746a04dd1f6 -r 37c6c23d629a tools/Makefile
--- a/tools/Makefile Thu Jan 31 15:15:15 2013 +0000
+++ b/tools/Makefile Thu Jan 31 15:22:50 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.165 2012/12/02 12:25:25 apb Exp $
+# $NetBSD: Makefile,v 1.166 2013/01/31 15:22:50 pooka Exp $
.include <bsd.own.mk>
@@ -17,6 +17,12 @@
.endif
.endif # MKTOOLS != no
+# TOOLS_BUILDRUMP == yes builds only the subset of the tools required
+# for building rump kernels and the hypervisor. It is typically used
+# when building rump kernels targeted for non-NetBSD systems (via
+# buildrump.sh), and should not be set for a regular "make build".
+TOOLS_BUILDRUMP?=no
+
.if ${TOOLCHAIN_MISSING} == "no"
.if defined(HAVE_GCC)
TOOLCHAIN_BITS= gmake .WAIT
@@ -91,20 +97,22 @@
# See above for special treatment for host-mkdep, compat, and binstall.
#
SUBDIR= host-mkdep compat binstall \
- .WAIT mktemp .WAIT sed .WAIT \
- cap_mkdb crunchgen ctags genassym gencat hexdump join \
+ .WAIT mktemp .WAIT sed .WAIT
+.if ${TOOLS_BUILDRUMP} == "no"
+SUBDIR+= cap_mkdb crunchgen ctags genassym gencat hexdump \
${LINT_BITS} \
- lorder makewhatis mkdep mtree nbperf .WAIT rpcgen tsort \
- uudecode m4 \
- .WAIT texinfo \
- .WAIT yacc \
- .WAIT awk \
+ makewhatis mtree nbperf .WAIT rpcgen uudecode
+.endif
+
+SUBDIR+= join lorder m4 mkdep tsort .WAIT yacc .WAIT awk .WAIT lex
+
+.if ${TOOLS_BUILDRUMP} == "no"
+SUBDIR += .WAIT texinfo \
.WAIT tic \
- .WAIT lex \
.WAIT pax \
.WAIT ${TOOLCHAIN_BITS} \
${DTRACE_BITS} \
- asn1_compile cat cksum compile_et config db \
+ asn1_compile cat cksum compile_et db \
file lint1 slc \
makefs .WAIT menuc mkcsmapper mkesdb mklocale mknod msgc \
.WAIT disklabel \
@@ -112,6 +120,8 @@
.WAIT fdisk \
.WAIT installboot \
pwd_mkdb stat strfile sunlabel zic
+.endif
+SUBDIR+= .WAIT config
.if ${MKLLVM} != "no"
SUBDIR+= \
@@ -130,6 +140,8 @@
SUBDIR+= mandoc
.endif
+.if ${TOOLS_BUILDRUMP} == "no"
+
.if ${MKMAINTAINERTOOLS:Uno} != "no"
SUBDIR+= autoconf .WAIT gettext
.endif
@@ -193,6 +205,8 @@
SUBDIR+= mkubootimage
.endif
+.endif # TOOLCHAIN_BUILDRUMP
+
check_MKTOOLS: .PHONY .NOTMAIN
.if ${MKTOOLS:Uyes} == "no"
@echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and'
Home |
Main Index |
Thread Index |
Old Index