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:
parent
403a9c73fb
commit
3bc2f9a897
@ -1,8 +1,13 @@
|
||||
# $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
|
||||
|
||||
.if !defined(NO_TOOLCHAIN)
|
||||
_cc=cc
|
||||
_binutils=binutils
|
||||
.endif
|
||||
|
||||
.if !defined(NO_CXX)
|
||||
.if ${MACHINE_ARCH} != "powerpc"
|
||||
_gperf=gperf
|
||||
|
@ -29,7 +29,7 @@ SUBDIR= ${_csu} libcom_err libcrypt libkvm msun libmd \
|
||||
libipx libisc libmenu ${_libmilter} ${_libmp} ${_libncp} \
|
||||
libnetgraph libopie libpam libpanel libpcap ${_libpthread} \
|
||||
${_libsm} ${_libsmb} ${_libsmdb} ${_libsmutil} \
|
||||
libstand libtelnet ${_libthr} libufs libugidfw libusbhid \
|
||||
libstand libtelnet ${_libthr} libufs libugidfw ${_libusbhid} \
|
||||
${_libvgl} libwrap libxpg4 liby libz
|
||||
|
||||
.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
|
||||
@ -62,6 +62,10 @@ _libsmdb= libsmdb
|
||||
_libsmutil= libsmutil
|
||||
.endif
|
||||
|
||||
.if !defined(NO_USB)
|
||||
_libusbhid= libusbhid
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
_compat= compat
|
||||
_libncp= libncp
|
||||
|
@ -74,8 +74,7 @@ SUBDIR= adjkerntz \
|
||||
swapon \
|
||||
sysctl \
|
||||
tunefs \
|
||||
umount \
|
||||
vinum
|
||||
umount
|
||||
|
||||
.if !defined(NOATM)
|
||||
SUBDIR+=atm
|
||||
@ -98,6 +97,10 @@ SUBDIR+=ip6fw \
|
||||
ping6
|
||||
.endif
|
||||
|
||||
.if !defined(NO_VINUM)
|
||||
SUBDIR+=vinum
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
SUBDIR+=cxconfig
|
||||
.if ${MACHINE} == "pc98"
|
||||
|
@ -8,11 +8,19 @@
|
||||
#
|
||||
|
||||
.if ${MACHINE_ARCH} != "ia64"
|
||||
.if !defined(NO_TOOLCHAIN)
|
||||
_xlint= xlint
|
||||
_lex= lex
|
||||
_yacc= yacc
|
||||
_c88= c88
|
||||
_c98= c98
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "amd64"
|
||||
.if !defined(NO_TOOLCHAIN)
|
||||
_gprof= gprof
|
||||
.endif
|
||||
_truss= truss
|
||||
.endif
|
||||
|
||||
@ -27,8 +35,8 @@ SUBDIR= alias \
|
||||
brandelf \
|
||||
bzip2 \
|
||||
bzip2recover \
|
||||
c89 \
|
||||
c99 \
|
||||
${_c89} \
|
||||
${_c99} \
|
||||
calendar \
|
||||
cap_mkdb \
|
||||
catman \
|
||||
@ -96,7 +104,7 @@ SUBDIR= alias \
|
||||
less \
|
||||
lessecho \
|
||||
lesskey \
|
||||
lex \
|
||||
${_lex} \
|
||||
limits \
|
||||
locale \
|
||||
locate \
|
||||
@ -188,8 +196,6 @@ SUBDIR= alias \
|
||||
uniq \
|
||||
units \
|
||||
unvis \
|
||||
usbhidaction \
|
||||
usbhidctl \
|
||||
users \
|
||||
uudecode \
|
||||
uuencode \
|
||||
@ -212,7 +218,7 @@ SUBDIR= alias \
|
||||
xinstall \
|
||||
${_xlint} \
|
||||
xstr \
|
||||
yacc \
|
||||
${_yacc} \
|
||||
yes \
|
||||
ypcat \
|
||||
ypmatch \
|
||||
@ -229,6 +235,11 @@ SUBDIR+=dig \
|
||||
SUBDIR+=vacation
|
||||
.endif
|
||||
|
||||
.if !defined(NO_USB)
|
||||
SUBDIR+=usbhidaction \
|
||||
usbhidctl
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
# Things that don't compile on alpha or are aout specific:
|
||||
SUBDIR+=doscmd \
|
||||
|
@ -114,8 +114,6 @@ SUBDIR= IPXrouted \
|
||||
trpt \
|
||||
tzsetup \
|
||||
ugidfw \
|
||||
usbd \
|
||||
usbdevs \
|
||||
vidcontrol \
|
||||
vipw \
|
||||
vnconfig \
|
||||
@ -148,6 +146,10 @@ SUBDIR+=ipftest \
|
||||
iptest
|
||||
.endif
|
||||
|
||||
.if !defined(NO_USB)
|
||||
SUBDIR+=usbd \
|
||||
usbdevs
|
||||
.endif
|
||||
.if !defined(NOLIBC_R) && ${MACHINE_ARCH} != "powerpc"
|
||||
SUBDIR+=pppctl
|
||||
.endif
|
||||
@ -179,8 +181,7 @@ SUBDIR+=elf2exe \
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
SUBDIR+=acpi \
|
||||
apm \
|
||||
SUBDIR+=apm \
|
||||
apmd \
|
||||
asf \
|
||||
btxld \
|
||||
@ -199,9 +200,15 @@ SUBDIR+=acpi \
|
||||
stallion \
|
||||
wlconfig \
|
||||
zzz
|
||||
|
||||
.if !defined(NO_ACPI)
|
||||
SUBDIR+=acpi
|
||||
.endif
|
||||
|
||||
.if !defined(NO_I4B)
|
||||
SUBDIR+=i4b
|
||||
.endif
|
||||
|
||||
.endif
|
||||
|
||||
# kgmon: builds, but no kernel profiling
|
||||
|
Loading…
Reference in New Issue
Block a user