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