2 # This builds a variety of "base" tools, useful for an embedded
6 CRUNCH_PROGS_sbin+= dmesg sysctl init reboot
7 CRUNCH_PROGS_bin+= ls cat dd df cp hostname kill mkdir sleep ps
8 CRUNCH_PROGS_bin+= ln rm kenv mv expr
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
15 #CRUNCH_PROGS_user.bin+= systat
16 CRUNCH_LIBS+= -ldevstat -lncursesw -lmemstat -lkvm -lelf
18 # CRUNCH_PROGS_usr.bin+= tar
19 CRUNCH_PROGS_usr.bin+= cpio
21 CRUNCH_LIBS+= -larchive -lbz2 -lz -llzma -lbsdxml -lssl -lcrypto
22 CRUNCH_LIBS+= -lprivatezstd -lthr
24 # Clear requires tput, and it's a shell script so it won't be crunched
25 CRUNCH_PROGS_usr.bin+= tput
30 CRUNCH_SUPPRESS_LINK_-sh= 1
31 CRUNCH_BUILDTOOLS+= bin/sh
34 CRUNCH_PROGS_usr.sbin+= chown
35 CRUNCH_ALIAS_chown= chgrp
37 # Basic filesystem stuff
38 CRUNCH_PROGS_sbin+= mount umount
41 # grep doesn't yet work -adrian
42 #CRUNCH_PROGS_usr.bin+= grep
45 #CRUNCH_PROGS_usr.bin+= less
46 #CRUNCH_ALIAS_less= more
49 CRUNCH_PROGS_usr.bin+= passwd
50 # These need to be shared, or PAM wants to include _all_ of the libraries
52 CRUNCH_SHLIBS+= -lpam -lbsm
55 CRUNCH_PROGS_usr.bin+= gzip
56 CRUNCH_ALIAS_gzip= gunzip gzcat zcat
57 CRUNCH_LIBS+= -lz -llzma -lbz2