Source-Changes-HG archive

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

[src/netbsd-1-5]: src/distrib/i386/floppies/ramdisk-kernel Pullup revs 1.6-1....



details:   https://anonhg.NetBSD.org/src/rev/8093de248113
branches:  netbsd-1-5
changeset: 489370:8093de248113
user:      jhawk <jhawk%NetBSD.org@localhost>
date:      Mon Sep 04 04:02:47 2000 +0000

description:
Pullup revs 1.6-1.7, approved by thorpej:
1.6:
 > For stripped kernels, run nm and save the output as
 > netbsd.KERNELNAME.symbols, and install in the release(7) tree.
1.7:
 > Pullaround from distrib/bootfloppy-common/Makefile.inc rev 1.18.2.2:
 >   Make sure PCMCIA alloc variables are retained in the symbol table of
 >   the resulting kernel, allowing them to be tweaked.
 > Also add pcic_irq_probe.

diffstat:

 distrib/i386/floppies/ramdisk-kernel/Makefile |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (51 lines):

diff -r d8e94746c793 -r 8093de248113 distrib/i386/floppies/ramdisk-kernel/Makefile
--- a/distrib/i386/floppies/ramdisk-kernel/Makefile     Mon Sep 04 04:00:55 2000 +0000
+++ b/distrib/i386/floppies/ramdisk-kernel/Makefile     Mon Sep 04 04:02:47 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.5 2000/06/12 18:51:15 he Exp $
+#      $NetBSD: Makefile,v 1.5.2.1 2000/09/04 04:02:47 jhawk Exp $
 
 TOP=           ${.CURDIR}/..
 
@@ -8,6 +8,10 @@
 
 MDEC=          ${DESTDIR}/usr/mdec
 STRIP?=                strip
+STRIPFLAGS?=   --strip-unneeded \
+                   -K pcic_isa_alloc_iobase -K pcic_isa_alloc_iosize \
+                   -K pcic_isa_intr_alloc_mask \
+                   -K pcic_irq_probe
 
 COMMONDIR=     ${TOP}/bootfloppy-common
 LISTS=         ${COMMONDIR}/list
@@ -21,24 +25,28 @@
 netbsd.INSTALL.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL/netbsd ${RAMDISK}
        cp ${KERNOBJDIR}/INSTALL/netbsd netbsd.tmp
        ${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK}
-       ${STRIP} netbsd.tmp
+       nm netbsd.tmp > netbsd.INSTALL.symbols
+       ${STRIP} ${STRIPFLAGS} netbsd.tmp
        gzip -9 netbsd.tmp
        mv netbsd.tmp.gz ${.TARGET}
 
 netbsd.INSTALL_TINY.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_TINY/netbsd ${RAMDISK_T}
        cp ${KERNOBJDIR}/INSTALL_TINY/netbsd netbsd.tmp
        ${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK_T}
-       ${STRIP} netbsd.tmp
+       nm netbsd.tmp > netbsd.INSTALL_TINY.symbols
+       ${STRIP} ${STRIPFLAGS} netbsd.tmp
        gzip -9 netbsd.tmp
        mv netbsd.tmp.gz ${.TARGET}
 
 KERNELS=netbsd.INSTALL.gz netbsd.INSTALL_TINY.gz
+KERNELSYMS=netbsd.INSTALL.symbols netbsd.INSTALL_TINY.symbols
 
 all: ${KERNELS}
 
 release:
        -mkdir -p ${RELEASEDIR}/binary/kernel
        cp -p ${KERNELS} ${RELEASEDIR}/binary/kernel
+       cp ${KERNELSYMS} ${RELEASEDIR}/binary/kernel
 
 clean cleandir distclean:
        rm -f *.core ${KERNELS}



Home | Main Index | Thread Index | Old Index