ed56ec3a05
There's two variables added to Makefile.crunch: SMALLPROG If 1, add SMALLPROG=1 to CRUNCHENV. [default: 1] This can be used by various Makefiles to determine if a `small' version of the program is required. SMALLPROG_INET6 If 1 and SMALLPROG == 1, add SMALLPROG_INET6=1 to CRUNCHENV. [default: 0] This can be used by various Makefiles to determine if the `small' version has INET6 support enabled. Only enable SMALLPROG_INET6 for programs on the ramdisks that have INET6 in the appropriate kernel, and cleanup INET6 setting. (Note: this means that sysinst won't get INET6 support if the kernel it's running on doesn't have it). This change saves a fair bit of space on various install images (including i386 ramdisk-{ps2,small,tiny}) that didn't have INET6 in the kernel but were unconditionally getting INET6 support in their tools. |
||
---|---|---|
.. | ||
init_s | ||
libhack | ||
mksunbootcd | ||
more | ||
script-installer | ||
ssh | ||
sysinst | ||
tls | ||
x_dd | ||
x_dhclient | ||
x_dmesg | ||
x_ed | ||
x_ftp | ||
x_gzip | ||
x_ifconfig | ||
x_mount | ||
x_netstat | ||
x_ping | ||
x_ping6 | ||
x_route | ||
x_sh | ||
x_umount | ||
zcat | ||
Makefile | ||
Makefile.inc | ||
README |
# $NetBSD: README,v 1.4 2002/03/25 07:39:50 lukem Exp $ From: "Gordon W. Ross" <gwr> Date: Tue, 3 Oct 95 16:37:39 EDT Subject: New ramdisk, tiny shell, etc. [ edited since the original mail ] As part of my efforts to build a RAM-disk root kernel for the sun3 port, I've developed some things that others may want: New RAM-disk: [ see sys/dev/ramdisk.c ] New "small/tiny" tools, to replace some of the larger programs that one usually wants on a ramdisk root: ssh: (small shell) * Consumes only about 8K of memory on an m68k! (saves about 100K in the ramdisk...) * Can run programs, possibly with I/O redirection * Just enough to let you run the programs needed while partitioning and copying miniroot to swap. tls: (tiny ls) * Consumes only about 4K of memory on an m68k! (saves about 10K in the ramdisk...) * Long format only, nothing fancy. Also, in the new "src/distrib/utils" area, I've made build directories for some programs that build smaller versions, usually by adding special CFLAGS init_s: (built with -DLETS_GET_SMALL) * Forces single-user mode * Eliminates unnecessary code libhack: small implementation of some libc functions * Needs only /etc/master.passwd (not pwd.db, spwd.db) * Reduces size of an m68k crunched binary by about 64K x_dd: built with -DNO_CONV (no conv=* options) x_ifconfig: supports inet only The x_ prefix on the above is to make the names unique so crunchgen will not confuse them with the real sources.