Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/rescue Infrastructure to build a set of "rescue" too...



details:   https://anonhg.NetBSD.org/src/rev/02d3b9bb1403
branches:  trunk
changeset: 526361:02d3b9bb1403
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu May 02 18:20:58 2002 +0000

description:
Infrastructure to build a set of "rescue" tools; a crunched-up version
of all the statically linked binaries in /bin, /sbin and the few in /usr/bin.

This isn't built nor installed yet.

diffstat:

 distrib/rescue/Makefile      |   60 +++++++++++++++++++++++
 distrib/rescue/list          |  108 +++++++++++++++++++++++++++++++++++++++++++
 distrib/rescue/list.bim      |    3 +
 distrib/rescue/list.edlabel  |    3 +
 distrib/rescue/list.fdisk    |    3 +
 distrib/rescue/list.ldconfig |    3 +
 distrib/rescue/mtree.conf    |    3 +
 7 files changed, 183 insertions(+), 0 deletions(-)

diffs (211 lines):

diff -r f07714152ac3 -r 02d3b9bb1403 distrib/rescue/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/rescue/Makefile   Thu May 02 18:20:58 2002 +0000
@@ -0,0 +1,60 @@
+#      $NetBSD: Makefile,v 1.1 2002/05/02 18:20:58 lukem Exp $
+
+.include <bsd.own.mk>
+.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
+
+WARNS=         1
+DBG=           -Os
+
+CRUNCHBIN=     rescue
+CRUNCHENV=     # empty - don't want SMALLPROG defined
+LISTS=         ${.CURDIR}/list
+MTREECONF=     ${.CURDIR}/mtree.conf
+IMAGEDEPENDS=  ${CRUNCHBIN}
+
+.if (${MACHINE} == "pc532")
+LISTS+=                ${.CURDIR}/list.bim
+.endif
+
+.if (${MACHINE} == "atari")    || (${MACHINE} == "mvme68k")    || \
+    (${MACHINE} == "sparc")    || (${MACHINE} == "sparc64")    || \
+    (${MACHINE} == "sun2")     || (${MACHINE} == "sun3")       || \
+    (${MACHINE} == "sun3x")
+LISTS+=                ${.CURDIR}/list.edlabel
+.endif
+
+.if (${MACHINE} == "arc")              || (${MACHINE} == "bebox")      || \
+    (${MACHINE} == "cobalt")           || (${MACHINE} == "hpcmips")    || \
+    (${MACHINE} == "i386")             || (${MACHINE} == "mvmeppc")    || \
+    (${MACHINE} == "netwinder")                || (${MACHINE} == "ofppc")      || \
+    (${MACHINE} == "playstation2")     || (${MACHINE} == "prep")
+LISTS+=                ${.CURDIR}/list.fdisk
+.endif
+
+.if (${OBJECT_FMT} == "ELF")                                   # {
+
+PARSELISTENV=  LDD_CMD=ldd_elf
+
+.if (${MACHINE_ARCH} == "arm") || (${MACHINE_ARCH} == "i386")  || \
+    (${MACHINE_ARCH} == "m68k")        || (${MACHINE_ARCH} == "sparc") || \
+    (${MACHINE_ARCH} == "vax")
+LISTS+=                ${.CURDIR}/list.ldconfig
+.endif
+
+.else  # OBJECT_FMT != "ELF"                                   # } {
+
+PARSELISTENV=  LDD_CMD=ldd_aout
+LISTS+=                ${.CURDIR}/list.ldconfig
+
+.endif # OBJECT_FMT != "ELF"                                   # }
+
+
+.include "${DISTRIBDIR}/common/Makefile.crunch"
+.include "${DISTRIBDIR}/common/Makefile.image"
+
+realall: ${WORKBUILT} ${WORKSPEC}
+
+install:
+#      XXX: implement
+
+.include <bsd.prog.mk>
diff -r f07714152ac3 -r 02d3b9bb1403 distrib/rescue/list
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/rescue/list       Thu May 02 18:20:58 2002 +0000
@@ -0,0 +1,108 @@
+#      $NetBSD: list,v 1.1 2002/05/02 18:20:59 lukem Exp $
+
+SRCDIRS        bin
+
+PROG   cat
+PROG   chio
+PROG   chmod
+PROG   cp
+PROG   csh
+PROG   date
+PROG   dd
+PROG   df
+PROG   domainname
+PROG   echo
+PROG   ed
+PROG   expr
+PROG   hostname
+PROG   kill
+PROG   ksh
+PROG   ln
+PROG   ls
+PROG   mkdir
+PROG   mt
+PROG   mv
+PROG   pax             tar
+PROG   ps
+PROG   pwd
+PROG   rcmd
+PROG   rcp
+PROG   rm
+PROG   rmdir
+PROG   sh
+PROG   sleep
+PROG   stty
+PROG   sync
+PROG   test            [
+
+SRCDIRS        sbin
+
+PROG   atactl
+PROG   badsect
+PROG   brconfig
+PROG   ccdconfig
+PROG   clri
+PROG   disklabel
+PROG   dkctl
+PROG   dmesg
+PROG   dump            rdump
+PROG   dump_lfs        rdump_lfs
+PROG   fsck
+PROG   fsck_ext2fs
+PROG   fsck_ffs
+PROG   fsck_lfs
+PROG   fsck_msdos
+PROG   fsdb
+PROG   fsirand
+PROG   ifconfig
+PROG   lmcctl
+PROG   mbrlabel
+PROG   mknod
+PROG   modload
+PROG   modunload
+PROG   mount           mount_ados mount_cd9660 mount_ext2fs mount_fdesc mount_ffs mount_filecore mount_kernfs mount_lfs mount_msdos mount_nfs mount_ntfs mount_null mount_overlay mount_procfs 
mount_ufs mount_umap mount_union
+PROG   mount_portal
+PROG   newfs           mount_mfs
+PROG   newfs_lfs
+PROG   newfs_msdos
+PROG   ping
+PROG   ping6
+PROG   pppoectl        ipppctl
+PROG   raidctl
+PROG   rcorder
+PROG   reboot          halt
+PROG   restore         rrestore
+PROG   rndctl
+PROG   route
+PROG   routed
+PROG   rtsol
+PROG   savecore
+PROG   scsictl
+PROG   setkey
+PROG   shutdown
+PROG   slattach
+PROG   swapctl         swapon
+PROG   sysctl
+PROG   ttyflags
+PROG   tunefs
+PROG   umount
+PROG   wdogctl
+PROG   wsconsctl
+
+SRCDIRS        usr.bin
+
+PROG   bzip2           bunzip2 bzcat
+PROG   kdump
+PROG   ktrace
+PROG   ktruss
+PROG   ldd
+
+SPECIAL ldd    srcdir  usr.bin/ldd/${LDD_CMD}
+
+
+SRCDIRS        gnu/usr.bin
+
+PROG   gzip            gunzip gzcat zcat 
+
+
+LIBS   -lbz2 -lcrypt -ledit -lipsec -lkvm -ll -lm -lrmt -ltermcap -lutil -lz 
diff -r f07714152ac3 -r 02d3b9bb1403 distrib/rescue/list.bim
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/rescue/list.bim   Thu May 02 18:20:58 2002 +0000
@@ -0,0 +1,3 @@
+#      $NetBSD: list.bim,v 1.1 2002/05/02 18:20:59 lukem Exp $
+
+PROG   bim
diff -r f07714152ac3 -r 02d3b9bb1403 distrib/rescue/list.edlabel
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/rescue/list.edlabel       Thu May 02 18:20:58 2002 +0000
@@ -0,0 +1,3 @@
+#      $NetBSD: list.edlabel,v 1.1 2002/05/02 18:20:59 lukem Exp $
+
+PROG   edlabel
diff -r f07714152ac3 -r 02d3b9bb1403 distrib/rescue/list.fdisk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/rescue/list.fdisk Thu May 02 18:20:58 2002 +0000
@@ -0,0 +1,3 @@
+#      $NetBSD: list.fdisk,v 1.1 2002/05/02 18:21:00 lukem Exp $
+
+PROG   fdisk
diff -r f07714152ac3 -r 02d3b9bb1403 distrib/rescue/list.ldconfig
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/rescue/list.ldconfig      Thu May 02 18:20:58 2002 +0000
@@ -0,0 +1,3 @@
+#      $NetBSD: list.ldconfig,v 1.1 2002/05/02 18:21:00 lukem Exp $
+
+PROG   ldconfig
diff -r f07714152ac3 -r 02d3b9bb1403 distrib/rescue/mtree.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/rescue/mtree.conf Thu May 02 18:20:58 2002 +0000
@@ -0,0 +1,3 @@
+#      $NetBSD: mtree.conf,v 1.1 2002/05/02 18:21:00 lukem Exp $
+
+.      type=dir uname=root gname=wheel mode=0755



Home | Main Index | Thread Index | Old Index