Introduce more knobs to slim down FreeBSD userland

NO_TOOLCHAIN	skips Compilers and Binutils
NO_USB		skips USB stuff
NO_VINUM	skips Vinum stuff
NO_ACPI		skips ACPI stuff
This commit is contained in:
Poul-Henning Kamp 2003-08-29 10:35:01 +00:00
parent 403a9c73fb
commit 3bc2f9a897
5 changed files with 44 additions and 14 deletions

View File

@ -1,8 +1,13 @@
# $FreeBSD$ # $FreeBSD$
SUBDIR= bc binutils cc cpio dc dialog diff diff3 \ SUBDIR= bc ${_binutils} ${_cc} cpio dc dialog diff diff3 \
${_gperf} grep gzip man patch rcs sdiff send-pr sort tar texinfo ${_gperf} grep gzip man patch rcs sdiff send-pr sort tar texinfo
.if !defined(NO_TOOLCHAIN)
_cc=cc
_binutils=binutils
.endif
.if !defined(NO_CXX) .if !defined(NO_CXX)
.if ${MACHINE_ARCH} != "powerpc" .if ${MACHINE_ARCH} != "powerpc"
_gperf=gperf _gperf=gperf

View File

@ -29,7 +29,7 @@ SUBDIR= ${_csu} libcom_err libcrypt libkvm msun libmd \
libipx libisc libmenu ${_libmilter} ${_libmp} ${_libncp} \ libipx libisc libmenu ${_libmilter} ${_libmp} ${_libncp} \
libnetgraph libopie libpam libpanel libpcap ${_libpthread} \ libnetgraph libopie libpam libpanel libpcap ${_libpthread} \
${_libsm} ${_libsmb} ${_libsmdb} ${_libsmutil} \ ${_libsm} ${_libsmb} ${_libsmdb} ${_libsmutil} \
libstand libtelnet ${_libthr} libufs libugidfw libusbhid \ libstand libtelnet ${_libthr} libufs libugidfw ${_libusbhid} \
${_libvgl} libwrap libxpg4 liby libz ${_libvgl} libwrap libxpg4 liby libz
.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
@ -62,6 +62,10 @@ _libsmdb= libsmdb
_libsmutil= libsmutil _libsmutil= libsmutil
.endif .endif
.if !defined(NO_USB)
_libusbhid= libusbhid
.endif
.if ${MACHINE_ARCH} == "i386" .if ${MACHINE_ARCH} == "i386"
_compat= compat _compat= compat
_libncp= libncp _libncp= libncp

View File

@ -74,8 +74,7 @@ SUBDIR= adjkerntz \
swapon \ swapon \
sysctl \ sysctl \
tunefs \ tunefs \
umount \ umount
vinum
.if !defined(NOATM) .if !defined(NOATM)
SUBDIR+=atm SUBDIR+=atm
@ -98,6 +97,10 @@ SUBDIR+=ip6fw \
ping6 ping6
.endif .endif
.if !defined(NO_VINUM)
SUBDIR+=vinum
.endif
.if ${MACHINE_ARCH} == "i386" .if ${MACHINE_ARCH} == "i386"
SUBDIR+=cxconfig SUBDIR+=cxconfig
.if ${MACHINE} == "pc98" .if ${MACHINE} == "pc98"

View File

@ -8,11 +8,19 @@
# #
.if ${MACHINE_ARCH} != "ia64" .if ${MACHINE_ARCH} != "ia64"
.if !defined(NO_TOOLCHAIN)
_xlint= xlint _xlint= xlint
_lex= lex
_yacc= yacc
_c88= c88
_c98= c98
.endif
.endif .endif
.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "amd64" .if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "amd64"
.if !defined(NO_TOOLCHAIN)
_gprof= gprof _gprof= gprof
.endif
_truss= truss _truss= truss
.endif .endif
@ -27,8 +35,8 @@ SUBDIR= alias \
brandelf \ brandelf \
bzip2 \ bzip2 \
bzip2recover \ bzip2recover \
c89 \ ${_c89} \
c99 \ ${_c99} \
calendar \ calendar \
cap_mkdb \ cap_mkdb \
catman \ catman \
@ -96,7 +104,7 @@ SUBDIR= alias \
less \ less \
lessecho \ lessecho \
lesskey \ lesskey \
lex \ ${_lex} \
limits \ limits \
locale \ locale \
locate \ locate \
@ -188,8 +196,6 @@ SUBDIR= alias \
uniq \ uniq \
units \ units \
unvis \ unvis \
usbhidaction \
usbhidctl \
users \ users \
uudecode \ uudecode \
uuencode \ uuencode \
@ -212,7 +218,7 @@ SUBDIR= alias \
xinstall \ xinstall \
${_xlint} \ ${_xlint} \
xstr \ xstr \
yacc \ ${_yacc} \
yes \ yes \
ypcat \ ypcat \
ypmatch \ ypmatch \
@ -229,6 +235,11 @@ SUBDIR+=dig \
SUBDIR+=vacation SUBDIR+=vacation
.endif .endif
.if !defined(NO_USB)
SUBDIR+=usbhidaction \
usbhidctl
.endif
.if ${MACHINE_ARCH} == "i386" .if ${MACHINE_ARCH} == "i386"
# Things that don't compile on alpha or are aout specific: # Things that don't compile on alpha or are aout specific:
SUBDIR+=doscmd \ SUBDIR+=doscmd \

View File

@ -114,8 +114,6 @@ SUBDIR= IPXrouted \
trpt \ trpt \
tzsetup \ tzsetup \
ugidfw \ ugidfw \
usbd \
usbdevs \
vidcontrol \ vidcontrol \
vipw \ vipw \
vnconfig \ vnconfig \
@ -148,6 +146,10 @@ SUBDIR+=ipftest \
iptest iptest
.endif .endif
.if !defined(NO_USB)
SUBDIR+=usbd \
usbdevs
.endif
.if !defined(NOLIBC_R) && ${MACHINE_ARCH} != "powerpc" .if !defined(NOLIBC_R) && ${MACHINE_ARCH} != "powerpc"
SUBDIR+=pppctl SUBDIR+=pppctl
.endif .endif
@ -179,8 +181,7 @@ SUBDIR+=elf2exe \
.endif .endif
.if ${MACHINE_ARCH} == "i386" .if ${MACHINE_ARCH} == "i386"
SUBDIR+=acpi \ SUBDIR+=apm \
apm \
apmd \ apmd \
asf \ asf \
btxld \ btxld \
@ -199,9 +200,15 @@ SUBDIR+=acpi \
stallion \ stallion \
wlconfig \ wlconfig \
zzz zzz
.if !defined(NO_ACPI)
SUBDIR+=acpi
.endif
.if !defined(NO_I4B) .if !defined(NO_I4B)
SUBDIR+=i4b SUBDIR+=i4b
.endif .endif
.endif .endif
# kgmon: builds, but no kernel profiling # kgmon: builds, but no kernel profiling