http://code.google.com/p/cauldron/source/detail?r=96
Modified:
/trunk/framework/misc/configsets/crunchgen_recipes/bascrunch_notes.txt
=======================================
--- /trunk/framework/misc/configsets/crunchgen_recipes/bascrunch_notes.txt
Wed Jul 28 09:33:17 2010
+++ /trunk/framework/misc/configsets/crunchgen_recipes/bascrunch_notes.txt
Wed Jul 28 15:26:56 2010
@@ -6,7 +6,7 @@
In this example, we're crunchgen as much of /sbin and /bin as possible to
shave
half a quid off the top.
-=== Original File Lists ===
+=== Original File Lists (sbin example) ===
Early netbsd-5 original sbin/ ls(1) listing:
@@ -49,44 +49,66 @@
After the build of the cunchgen binary:
-# for a in apmlabel mount_fdesc mount_ptyfs newfs_msdos route sysctl
atactl fdisk ldconfig mount_ffs ttyflags bioctl fsck mbrlabel
mount_filecore tunefs fsck_ffs mknod mount_kernfs mount_tmpfs rtsol umount
disklabel fsck_msdos modload mount_udf ping scan_ffs veriexecctl dkctl
modunload mount_msdos ping6 setkey wdogctl dkscan_bsdlabel gpt mount
mount_null mount_umap shutdown wsconsctl dmesg mount_ados mount_overlay
mount_union rcorder drvctl ifconfig mount_cd9660 reboot swapctl init
mount_efs mount_procfs newfs rndctl swapon halt poweroff ; do ln
bascrunch_sbin $a; done
+NOTE: To get the proper list (this document may drift, use the 'progs *'
+ list in your crunchgen.conf
+
+===== SBIN =====
+
+ buildenv# for a in apmlabel mount_fdesc mount_ptyfs newfs_msdos route
sysctl
+ atactl fdisk ldconfig mount_ffs ttyflags bioctl fsck mbrlabel
mount_filecore
+ tunefs fsck_ffs mknod mount_kernfs mount_tmpfs rtsol umount disklabel
+ fsck_msdos modload mount_udf ping scan_ffs veriexecctl dkctl modunload
+ mount_msdos ping6 setkey wdogctl dkscan_bsdlabel gpt mount mount_null
+ mount_umap shutdown wsconsctl dmesg mount_ados mount_overlay
mount_union
+ rcorder drvctl ifconfig mount_cd9660 reboot swapctl init mount_efs
+ mount_procfs newfs rndctl swapon halt poweroff ; do
+ ln bascrunch_sbin $a;
+ done
+===== BIN ======
+
+ buildenv# for a in progs cat cp dd echo expr hostname ksh ls pax ps rm sh
+ stty bzip2 chmod date df ed gzip kill ln mkdir mv progress pwd rmdir
sleep
+ sync test ; do
+ ln bascrunch_bin $a;
+ done
+
==============================================================
Original prune list:
# more /home/fsimages/rd_prune.txt | grep -i sbin
-sbin/vinum
-sbin/dump_lfs
-sbin/rdump_lfs
-sbin/dump
-sbin/fsck_lfs
-sbin/newfs_lfs
-sbin/fsck_ext2fs
-sbin/raidctl
-sbin/savecore
-sbin/slattach
-sbin/resize_lfs
-sbin/rdump
-sbin/pppoectl
-sbin/newfs_ext2fs
-sbin/mount_nfs
-sbin/dhclient
-sbin/brconfig
-sbin/amrctl
-sbin/fsdb
-sbin/scsictl
-sbin/tbrconfig
-sbin/restore
-sbin/newfs_udf
-sbin/newfs_sysvbfs
-sbin/mount_ntfs
-sbin/mount_lfs
-sbin/mount_hfs
-sbin/mount_ext2fs
-sbin/dhcpcd
-sbin/clri
-sbin/cgdconfig
-sbin/badsect
+ sbin/vinum
+ sbin/dump_lfs
+ sbin/rdump_lfs
+ sbin/dump
+ sbin/fsck_lfs
+ sbin/newfs_lfs
+ sbin/fsck_ext2fs
+ sbin/raidctl
+ sbin/savecore
+ sbin/slattach
+ sbin/resize_lfs
+ sbin/rdump
+ sbin/pppoectl
+ sbin/newfs_ext2fs
+ sbin/mount_nfs
+ sbin/dhclient
+ sbin/brconfig
+ sbin/amrctl
+ sbin/fsdb
+ sbin/scsictl
+ sbin/tbrconfig
+ sbin/restore
+ sbin/newfs_udf
+ sbin/newfs_sysvbfs
+ sbin/mount_ntfs
+ sbin/mount_lfs
+ sbin/mount_hfs
+ sbin/mount_ext2fs
+ sbin/dhcpcd
+ sbin/clri
+ sbin/cgdconfig
+ sbin/badsect
=== Walk Through ===
@@ -95,7 +117,9 @@
The cauldron update/buld process is as so
- * Update / Patch Source
+ * Update your build environment (if needed, possibly using your custom
binaries below if not cross-compiling)
+ * Update pkgsrc / build updated packages
+ * Update & Patch Userland/Kernel Sources
* Build your custom release binaries
* Extract binaries into destdir
* Run Scripts: fsimages/make_dir_mdrd.sh fsimages/make_dir_cfrd.sh