1#
2# This builds a variety of "base" tools, useful for an embedded
3# system.
4#
5#
6CRUNCH_PROGS_sbin+=	dmesg sysctl init reboot
7CRUNCH_PROGS_bin+=	ls cat dd df cp hostname kill mkdir sleep ps
8CRUNCH_PROGS_bin+=	ln rm kenv mv expr
9CRUNCH_PROGS_usr.bin+=	true false hexdump tail nc w head uname tset
10CRUNCH_PROGS_usr.sbin+=	gpioctl
11CRUNCH_ALIAS_w=		uptime
12CRUNCH_ALIAS_tset=	reset
13
14CRUNCH_PROGS_usr.bin+=	vmstat
15#CRUNCH_PROGS_user.bin+=	systat
16CRUNCH_LIBS+=		-ldevstat -lncursesw -lmemstat -lkvm -lelf
17
18# CRUNCH_PROGS_usr.bin+=	tar
19CRUNCH_PROGS_usr.bin+=	cpio
20# XXX SSL ?
21CRUNCH_LIBS+=		-larchive -lbz2 -lz -llzma -lbsdxml -lssl -lcrypto
22CRUNCH_LIBS+=		-lprivatezstd -lthr
23
24# Clear requires tput, and it's a shell script so it won't be crunched
25CRUNCH_PROGS_usr.bin+=	tput
26
27# sh
28CRUNCH_PROGS_bin+=	sh
29CRUNCH_ALIAS_sh= -sh
30CRUNCH_SUPPRESS_LINK_-sh=	1
31CRUNCH_BUILDTOOLS+=	bin/sh
32
33# chown
34CRUNCH_PROGS_usr.sbin+=	chown
35CRUNCH_ALIAS_chown=	chgrp
36
37# Basic filesystem stuff
38CRUNCH_PROGS_sbin+=	mount umount
39
40# grep
41# grep doesn't yet work -adrian
42#CRUNCH_PROGS_usr.bin+=	grep
43
44# less/more
45#CRUNCH_PROGS_usr.bin+=	less
46#CRUNCH_ALIAS_less=	more
47
48# passwd
49CRUNCH_PROGS_usr.bin+=	passwd
50# These need to be shared, or PAM wants to include _all_ of the libraries
51# at runtime.
52CRUNCH_SHLIBS+= -lpam -lbsm
53
54# gzip/gunzip
55CRUNCH_PROGS_usr.bin+=	gzip
56CRUNCH_ALIAS_gzip=	gunzip gzcat zcat
57CRUNCH_LIBS+=		-lz -llzma -lbz2
58