6b1dcfcd83
This uses the existing crunchgen infrastructure to build a series of tools designed to replace the base and networking tools on an embedded system. It reuses 'bsd.crunchgen.mk' to drive the actual file creation. The rescue build system also uses this. Unlike busybox, it doesn't include its own source - instead, it just builds from the sources in /usr/src/ and leverages the existing BSD framework. Thie is still quite messy and could do with a whole lot of cleaning up. However it is proving to be very useful with my current build framework, allowing me to build binary root images that are about 30% less than simply cherrypicking files and libraries from an installworld.
33 lines
568 B
Makefile
33 lines
568 B
Makefile
#
|
|
# This builds network tools.
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
CRUNCH_PROGS_sbin+= route ping
|
|
CRUNCH_PROGS_usr.sbin+= arp
|
|
|
|
# inetd
|
|
CRUNCH_PROGS_usr.sbin+= inetd
|
|
CRUNCH_LIBS+= -lwrap
|
|
|
|
#.if ${MK_INET6_SUPPORT} != "no"
|
|
#CRUNCH_PROGS_sbin+= ping6
|
|
#.endif
|
|
|
|
# netstat
|
|
CRUNCH_PROGS_usr.bin+= netstat
|
|
CRUNCH_LIBS+= -lmemstat -lnetgraph
|
|
CRUNCH_BUILDOPTS_netstat=-DMK_IPX_SUPPORT=no
|
|
|
|
# ifconfig
|
|
CRUNCH_PROGS_sbin+= ifconfig
|
|
CRUNCH_BUILDOPTS_ifconfig=-DMK_IPX_SUPPORT=no
|
|
|
|
# wlan stuff
|
|
CRUNCH_PROGS_usr.sbin+= wlandebug
|
|
|
|
# tcpdump
|
|
CRUNCH_PROGS_usr.sbin+= tcpdump
|
|
# CRUNCH_LIBS+= -lpcap -lcrypto
|