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 12 13CRUNCH_SRCDIR_tset= ${SRCTOP}/usr.bin/ncurses 14CRUNCH_ALIAS_tset= reset 15 16CRUNCH_PROGS_usr.bin+= vmstat 17#CRUNCH_PROGS_user.bin+= systat 18CRUNCH_LIBS+= -ldevstat -lncursesw -lmemstat -lkvm -lelf 19 20# CRUNCH_PROGS_usr.bin+= tar 21CRUNCH_PROGS_usr.bin+= cpio 22# XXX SSL ? 23CRUNCH_LIBS+= -larchive -lbz2 -lz -llzma -lbsdxml -lssl -lcrypto 24CRUNCH_LIBS+= -lprivatezstd -lthr 25 26# Clear requires tput, and it's a shell script so it won't be crunched 27CRUNCH_PROGS_usr.bin+= tput 28CRUNCH_SRCDIR_tput= ${SRCTOP}/usr.bin/ncurses 29 30# sh 31CRUNCH_PROGS_bin+= sh 32CRUNCH_ALIAS_sh= -sh 33CRUNCH_SUPPRESS_LINK_-sh= 1 34CRUNCH_BUILDTOOLS+= bin/sh 35 36# chown 37CRUNCH_PROGS_usr.sbin+= chown 38CRUNCH_ALIAS_chown= chgrp 39 40# Basic filesystem stuff 41CRUNCH_PROGS_sbin+= mount umount 42 43# grep 44# grep doesn't yet work -adrian 45#CRUNCH_PROGS_usr.bin+= grep 46 47# less/more 48#CRUNCH_PROGS_usr.bin+= less 49#CRUNCH_ALIAS_less= more 50 51# passwd 52CRUNCH_PROGS_usr.bin+= passwd 53# These need to be shared, or PAM wants to include _all_ of the libraries 54# at runtime. 55CRUNCH_SHLIBS+= -lpam -lbsm 56 57# gzip/gunzip 58CRUNCH_PROGS_usr.bin+= gzip 59CRUNCH_ALIAS_gzip= gunzip gzcat zcat 60CRUNCH_LIBS+= -lz -llzma -lbz2 61