Source-Changes-HG archive

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

[src/trunk]: src/distrib/arc/instkernel Make md-root kernels (both elf and ec...



details:   https://anonhg.NetBSD.org/src/rev/584478928c0b
branches:  trunk
changeset: 525643:584478928c0b
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Apr 14 14:14:16 2002 +0000

description:
Make md-root kernels (both elf and ecoff) here and
install them into RELEASEDIR.

diffstat:

 distrib/arc/instkernel/Makefile |  28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diffs (32 lines):

diff -r fae82939d849 -r 584478928c0b distrib/arc/instkernel/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/arc/instkernel/Makefile   Sun Apr 14 14:14:16 2002 +0000
@@ -0,0 +1,28 @@
+#      $NetBSD: Makefile,v 1.1 2002/04/14 14:14:16 tsutsui Exp $
+
+.include <bsd.own.mk>
+.include "${_SRC_TOP_}/distrib/Makefile.inc"
+
+RAMDISKDIR!=   cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
+RAMDISK=       ${RAMDISKDIR}/ramdisk.fs
+MDSETTARGETS=  RAMDISK ${RAMDISK} -
+
+netbsd.RAMDISK.post=   OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
+                           ${OBJCOPY} -O ecoff-littlemips \
+                           -R .mdebug -R .ident \
+                           netbsd.tmp netbsd.tmp.ecoff && \
+                           gzip -9f netbsd.tmp.ecoff && \
+                           mv netbsd.tmp.ecoff.gz netbsd.RAMDISK.ecoff.gz
+
+CLEANFILES+=   netbsd.tmp.ecoff netbsd.RAMDISK.ecoff netbsd.RAMDISK.ecoff.gz
+
+KERNBINDIR=    ${RELEASEDIR}/binary/kernel
+
+release: check_RELEASEDIR .WAIT netbsd.RAMDISK.gz netbsd.RAMDISK.ecoff.gz
+       -mkdir -p ${KERNBINDIR}
+       ${RELINSTALL} netbsd.RAMDISK.gz netbsd.RAMDISK.symbols.gz \
+           netbsd.RAMDISK.ecoff.gz ${KERNBINDIR}
+
+.include "${DISTRIBDIR}/common/Makefile.mdset"
+
+.include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index