Source-Changes-HG archive

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

[src/trunk]: src/distrib/i386/floppies/ramdisk-kernel Makefile to build and i...



details:   https://anonhg.NetBSD.org/src/rev/1d6d3da6f9cc
branches:  trunk
changeset: 485786:1d6d3da6f9cc
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Fri May 05 19:29:28 2000 +0000

description:
Makefile to build and install the ramdisk kernels, separately from the boot
floppy images.

diffstat:

 distrib/i386/floppies/ramdisk-kernel/Makefile |  46 +++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diffs (50 lines):

diff -r 8e19b91f3700 -r 1d6d3da6f9cc distrib/i386/floppies/ramdisk-kernel/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/i386/floppies/ramdisk-kernel/Makefile     Fri May 05 19:29:28 2000 +0000
@@ -0,0 +1,46 @@
+#      $NetBSD: Makefile,v 1.1 2000/05/05 19:29:28 mycroft Exp $
+
+TOP=           ${.CURDIR}/..
+
+.include "${TOP}/Makefile.inc"
+
+MDEC=          ${DESTDIR}/usr/mdec
+STRIP?=                strip
+
+KERNDIR=       ${.CURDIR}/../../../../sys/arch/i386/compile
+COMMONDIR=     ${TOP}/bootfloppy-common
+LISTS=         ${COMMONDIR}/list
+RAMDISK        !=cd $(.CURDIR)/../ramdisk/; \
+        printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk.fs\n" | \
+       ${MAKE} -s -f-
+
+KERNELS=       netbsd.INSTALL.gz netbsd.INSTALL_TINY.gz
+
+all: ${KERNELS}
+
+KERN?=         ${.CURDIR}/../../../../sys/arch/i386/compile/INSTALL/netbsd
+netbsd.INSTALL.gz: ${KERNDIR}/INSTALL/netbsd ${RAMDISK}
+       cp ${KERNDIR}/INSTALL/netbsd netbsd.tmp
+       ${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK}
+       ${STRIP} netbsd.tmp
+       gzip -9 netbsd.tmp
+       mv netbsd.tmp.gz ${.TARGET}
+
+KERN?=         ${.CURDIR}/../../../../sys/arch/i386/compile/INSTALL_TINY/netbsd
+netbsd.INSTALL_TINY.gz: ${KERNDIR}/INSTALL_TINY/netbsd ${RAMDISK}
+       cp ${KERNDIR}/INSTALL_TINY/netbsd netbsd.tmp
+       ${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK}
+       ${STRIP} netbsd.tmp
+       gzip -9 netbsd.tmp
+       mv netbsd.tmp.gz ${.TARGET}
+
+release:
+       -mkdir -p ${RELEASEDIR}/binary/kernel
+       cp -p ${KERNELS} ${RELEASEDIR}/binary/kernel
+
+clean cleandir distclean:
+       rm -f *.core ${KERNELS}
+
+.include <bsd.own.mk>
+.include <bsd.obj.mk>
+.include <bsd.subdir.mk>



Home | Main Index | Thread Index | Old Index