From 89d726eb4674ccaaeec3ec9f381a5232ef11fcc7 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Mon, 9 Jan 2006 07:24:29 +0000 Subject: [PATCH] Make and install a bootloader binary with embedded RAMDISK kernel image. --- .../ews4800mips/floppies/instkernel/Makefile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/distrib/ews4800mips/floppies/instkernel/Makefile b/distrib/ews4800mips/floppies/instkernel/Makefile index ea09faf91687..fb1e793a1e9e 100644 --- a/distrib/ews4800mips/floppies/instkernel/Makefile +++ b/distrib/ews4800mips/floppies/instkernel/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2005/12/29 16:01:31 tsutsui Exp $ +# $NetBSD: Makefile,v 1.2 2006/01/09 07:24:29 tsutsui Exp $ .include .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" @@ -11,4 +11,21 @@ MDSET_RELEASEDIR= binary/kernel .include "${DISTRIBDIR}/common/Makefile.mdset" +BOOT_RAMDISK= boot-RAMDISK +BOOT_RELEASEDIR= installation/boot + +all realall: ${BOOT_RAMDISK}.gz + +${BOOT_RAMDISK}.gz: netbsd-RAMDISK.gz ${DESTDIR}/usr/mdec/boot_kernel.gz + gunzip -c ${DESTDIR}/usr/mdec/boot_kernel.gz > ${BOOT_RAMDISK}.tmp + ${TOOL_MDSETIMAGE} ${BOOT_RAMDISK}.tmp netbsd-RAMDISK.gz + ${ELF2ECOFF} ${BOOT_RAMDISK}.tmp ${BOOT_RAMDISK}.coff + gzip -9c ${BOOT_RAMDISK}.coff > ${.TARGET} + +CLEANFILES+= ${BOOT_RAMDISK}.tmp ${BOOT_RAMDISK}.coff ${BOOT_RAMDISK}.gz + +release:: check_RELEASEDIR .WAIT ${BOOT_RAMDISK}.gz + ${RELEASE_INSTALL} ${BOOT_RAMDISK}.gz \ + ${RELEASEDIR}/${MACHINE}/${BOOT_RELEASEDIR} + .include