2 # This builds a variety of "base" tools, useful for an embedded
7 CRUNCH_PROGS_sbin+= dmesg sysctl init reboot
8 CRUNCH_PROGS_bin+= ls cat dd df cp hostname kill mkdir sleep ps ln rm hostname
9 CRUNCH_PROGS_usr.bin+= true false hexdump tail nc w head uname tset
10 CRUNCH_PROGS_usr.sbin+= gpioctl
11 CRUNCH_ALIAS_w= uptime
12 CRUNCH_ALIAS_tset= reset
14 CRUNCH_PROGS_usr.bin+= vmstat systat
15 CRUNCH_LIBS+= -ldevstat -lncursesw -lncurses -lmemstat -lkvm
17 CRUNCH_PROGS_usr.bin+= tar cpio
19 CRUNCH_LIBS+= -larchive -lbz2 -lz -llzma -lbsdxml -lssl -lcrypto
21 # Clear requires tput, and it's a shell script so it won't be crunched
22 CRUNCH_PROGS_usr.bin+= tput
27 CRUNCH_SUPPRESS_LINK_-sh= 1
28 CRUNCH_BUILDTOOLS+= bin/sh
31 CRUNCH_PROGS_usr.sbin+= chown
32 CRUNCH_ALIAS_chown= chgrp
34 # Basic filesystem stuff
35 CRUNCH_PROGS_sbin+= mount umount
38 # grep doesn't yet work -adrian
39 CRUNCH_PROGS_usr.bin+= grep
42 CRUNCH_PROGS_usr.bin+= less
43 CRUNCH_ALIAS_less= more
46 CRUNCH_PROGS_usr.bin+= passwd
47 # These need to be shared, or PAM wants to include _all_ of the libraries
49 CRUNCH_SHLIBS+= -lpam -lbsm
52 CRUNCH_PROGS_usr.bin+= gzip
53 CRUNCH_ALIAS_gunzip= gzip
54 CRUNCH_ALIAS_gzcat= gzip
55 CRUNCH_LIBS+= -lz -llzma -lbz2