Convert to using ${MDSETIMAGE}.

Provide a default value for $MDSETIMAGE and pull in bsd.own.mk to have
it overriden as needed for cross/-current builds.
This commit is contained in:
jmc 2001-10-21 23:23:19 +00:00
parent 57d273d68a
commit 4d6ad24166
23 changed files with 84 additions and 52 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2000/09/10 21:59:00 jhawk Exp $ # $NetBSD: Makefile,v 1.14 2001/10/21 23:23:19 jmc Exp $
.include "../../../../Makefile.inc" .include "../../../../Makefile.inc"
@ -6,12 +6,13 @@ RAMDISK!=cd ${.CURDIR}/../ramdisk; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk.fs\n" | \ printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk.fs\n" | \
${MAKE} -s -f- ${MAKE} -s -f-
MDSETIMAGE?= mdsetimage
KERNEL?=${KERNOBJDIR}/INSTALL/netbsd KERNEL?=${KERNOBJDIR}/INSTALL/netbsd
STRIP?= strip # make STRIP=echo can be useful STRIP?= strip # make STRIP=echo can be useful
all: all:
cp ${KERNEL} netbsd cp ${KERNEL} netbsd
mdsetimage -v netbsd ${RAMDISK} ${MDSETIMAGE} -v netbsd ${RAMDISK}
nm netbsd > netbsd.symbols nm netbsd > netbsd.symbols
${STRIP} netbsd ${STRIP} netbsd
gzip -9f netbsd gzip -9f netbsd

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2000/11/12 00:56:13 matt Exp $ # $NetBSD: Makefile,v 1.2 2001/10/21 23:23:19 jmc Exp $
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
@ -15,13 +15,14 @@ RAMDISK!= cd $(.CURDIR)/../ramdisk/; \
${MAKE} -s -f- ${MAKE} -s -f-
CLEANFILES+= netbsd.tmp ${KERNELS:C/^.*$/netbsd.&.gz/g} CLEANFILES+= netbsd.tmp ${KERNELS:C/^.*$/netbsd.&.gz/g}
MDSETIMAGE?= mdsetimage
all: ${KERNELS:C/^.*$/netbsd.&.gz/g} all: ${KERNELS:C/^.*$/netbsd.&.gz/g}
.for kern in ${KERNELS} .for kern in ${KERNELS}
netbsd.${kern}.gz: ${KERNOBJDIR}/${kern}/netbsd ${RAMDISK} netbsd.${kern}.gz: ${KERNOBJDIR}/${kern}/netbsd ${RAMDISK}
cp ${KERNOBJDIR}/${kern}/netbsd netbsd.tmp cp ${KERNOBJDIR}/${kern}/netbsd netbsd.tmp
mdsetimage -v netbsd.tmp ${RAMDISK} ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
${STRIP} netbsd.tmp ${STRIP} netbsd.tmp
gzip -9 netbsd.tmp gzip -9 netbsd.tmp
mv netbsd.tmp.gz ${.TARGET} mv netbsd.tmp.gz ${.TARGET}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.4 2000/05/02 16:06:47 sjg Exp $ # $NetBSD: Makefile.inc,v 1.5 2001/10/21 23:23:19 jmc Exp $
# TOP is assumed to be defined by Makefile including this one. # TOP is assumed to be defined by Makefile including this one.
@ -15,6 +15,7 @@ VND_CRDEV= /dev/r${VND}d
IMAGE?= xxx.fs IMAGE?= xxx.fs
KERN?= netbsd-xxx KERN?= netbsd-xxx
MDEC= ${DESTDIR}/usr/mdec MDEC= ${DESTDIR}/usr/mdec
MDSETIMAGE?= mdsetimage
LISTS= ${COMMONDIR}/list LISTS= ${COMMONDIR}/list
RAMDISK !=cd $(.CURDIR)/../ramdisk/; \ RAMDISK !=cd $(.CURDIR)/../ramdisk/; \
@ -55,12 +56,13 @@ unconfig:
netbsd.ram.gz: ${KERN} ${RAMDISK} netbsd.ram.gz: ${KERN} ${RAMDISK}
cp ${KERN} netbsd.tmp cp ${KERN} netbsd.tmp
mdsetimage -v netbsd.tmp ${RAMDISK} ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
gzip netbsd.tmp gzip netbsd.tmp
mv netbsd.tmp.gz ${.TARGET} mv netbsd.tmp.gz ${.TARGET}
clean cleandir: clean cleandir:
/bin/rm -f *.core ${IMAGE} ${CLEANFILES} /bin/rm -f *.core ${IMAGE} ${CLEANFILES}
.include <bsd.own.mk>
.include <bsd.obj.mk> .include <bsd.obj.mk>
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2001/04/22 02:04:22 shin Exp $ # $NetBSD: Makefile,v 1.5 2001/10/21 23:23:20 jmc Exp $
.include "../Makefile.inc" .include "../Makefile.inc"
@ -15,6 +15,7 @@ IINST= ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} \
PBSDBOOTDIR = ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot PBSDBOOTDIR = ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot
PBSDBOOT = ${PBSDBOOTDIR}/pbsdboot.exe PBSDBOOT = ${PBSDBOOTDIR}/pbsdboot.exe
PBSDBOOT1 = ${PBSDBOOTDIR}/pbsdboot1.exe PBSDBOOT1 = ${PBSDBOOTDIR}/pbsdboot1.exe
MDSETIMAGE?= mdsetimage
INSTKERNELS = TX3912 TX3922 INSTKERNELS = TX3912 TX3922
@ -29,7 +30,7 @@ MINIROOTOBJ != cd ${MINIROOTDIR}; ${MAKE} print-objdir
release: release:
rm -f netbsd netbsd.gz rm -f netbsd netbsd.gz
cp ${KERNOBJDIR}/RAMDISK/netbsd . cp ${KERNOBJDIR}/RAMDISK/netbsd .
mdsetimage netbsd ${MINIROOTOBJ}/miniroot.fs ${MDSETIMAGE} netbsd ${MINIROOTOBJ}/miniroot.fs
gzip -9 netbsd gzip -9 netbsd
${IINST} netbsd.gz ${ITARGET}/. ${IINST} netbsd.gz ${ITARGET}/.
.for instkern in ${INSTKERNELS} .for instkern in ${INSTKERNELS}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2001/07/21 14:46:09 jdolecek Exp $ # $NetBSD: Makefile,v 1.6 2001/10/21 23:23:20 jmc Exp $
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
@ -8,6 +8,7 @@ TOP= ${.CURDIR}/..
MDEC= ${DESTDIR}/usr/mdec MDEC= ${DESTDIR}/usr/mdec
STRIP?= strip STRIP?= strip
MDSETIMAGE?= ${DESTDIR}/usr/sbin/mdsetimage
#COMMONDIR= ${TOP}/bootfloppy-common #COMMONDIR= ${TOP}/bootfloppy-common
#LISTS= ${COMMONDIR}/list #LISTS= ${COMMONDIR}/list
@ -23,7 +24,7 @@ RAMDISK_S!= cd ${.CURDIR}/../ramdisk-small/; \
netbsd.INSTALL.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL/netbsd ${RAMDISK} netbsd.INSTALL.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL/netbsd ${RAMDISK}
cp ${KERNOBJDIR}/INSTALL/netbsd netbsd.tmp cp ${KERNOBJDIR}/INSTALL/netbsd netbsd.tmp
${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK} ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
nm netbsd.tmp > netbsd.INSTALL.symbols nm netbsd.tmp > netbsd.INSTALL.symbols
${STRIP} netbsd.tmp ${STRIP} netbsd.tmp
gzip -9 netbsd.tmp gzip -9 netbsd.tmp
@ -31,7 +32,7 @@ netbsd.INSTALL.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL/netbsd ${RAMDISK}
netbsd.INSTALL_LAPTOP.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_LAPTOP/netbsd ${RAMDISK} netbsd.INSTALL_LAPTOP.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_LAPTOP/netbsd ${RAMDISK}
cp ${KERNOBJDIR}/INSTALL_LAPTOP/netbsd netbsd.tmp cp ${KERNOBJDIR}/INSTALL_LAPTOP/netbsd netbsd.tmp
${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK} ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
nm netbsd.tmp > netbsd.INSTALL_LAPTOP.symbols nm netbsd.tmp > netbsd.INSTALL_LAPTOP.symbols
${STRIP} netbsd.tmp ${STRIP} netbsd.tmp
gzip -9 netbsd.tmp gzip -9 netbsd.tmp
@ -40,7 +41,7 @@ netbsd.INSTALL_LAPTOP.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_LAPTOP/netbsd ${RAMDISK
netbsd.INSTALL_TINY.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_TINY/netbsd ${RAMDISK_T} netbsd.INSTALL_TINY.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_TINY/netbsd ${RAMDISK_T}
cp ${KERNOBJDIR}/INSTALL_TINY/netbsd netbsd.tmp cp ${KERNOBJDIR}/INSTALL_TINY/netbsd netbsd.tmp
gdb --write -batch -x ${.CURDIR}/nocluster.gdb netbsd.tmp </dev/null gdb --write -batch -x ${.CURDIR}/nocluster.gdb netbsd.tmp </dev/null
${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK_T} ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK_T}
nm netbsd.tmp > netbsd.INSTALL_TINY.symbols nm netbsd.tmp > netbsd.INSTALL_TINY.symbols
${STRIP} netbsd.tmp ${STRIP} netbsd.tmp
gzip -9 netbsd.tmp gzip -9 netbsd.tmp
@ -48,7 +49,7 @@ netbsd.INSTALL_TINY.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_TINY/netbsd ${RAMDISK_T}
netbsd.INSTALL_SMALL.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_SMALL/netbsd ${RAMDISK_S} netbsd.INSTALL_SMALL.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_SMALL/netbsd ${RAMDISK_S}
cp ${KERNOBJDIR}/INSTALL_SMALL/netbsd netbsd.tmp cp ${KERNOBJDIR}/INSTALL_SMALL/netbsd netbsd.tmp
${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK_S} ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK_S}
nm netbsd.tmp > netbsd.INSTALL_SMALL.symbols nm netbsd.tmp > netbsd.INSTALL_SMALL.symbols
${STRIP} netbsd.tmp ${STRIP} netbsd.tmp
gzip -9 netbsd.tmp gzip -9 netbsd.tmp
@ -57,7 +58,7 @@ netbsd.INSTALL_SMALL.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_SMALL/netbsd ${RAMDISK_S
netbsd.INSTALL_PS2.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_PS2/netbsd ${RAMDISK_S} netbsd.INSTALL_PS2.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_PS2/netbsd ${RAMDISK_S}
cp ${KERNOBJDIR}/INSTALL_PS2/netbsd netbsd.tmp cp ${KERNOBJDIR}/INSTALL_PS2/netbsd netbsd.tmp
gdb --write -batch -x ${.CURDIR}/nocluster.gdb netbsd.tmp </dev/null gdb --write -batch -x ${.CURDIR}/nocluster.gdb netbsd.tmp </dev/null
${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK_S} ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK_S}
nm netbsd.tmp > netbsd.INSTALL_PS2.symbols nm netbsd.tmp > netbsd.INSTALL_PS2.symbols
${STRIP} netbsd.tmp ${STRIP} netbsd.tmp
gzip -9 netbsd.tmp gzip -9 netbsd.tmp

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2001/06/24 12:09:04 veego Exp $ # $NetBSD: Makefile,v 1.4 2001/10/21 23:23:20 jmc Exp $
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
@ -7,6 +7,7 @@ TOP= ${.CURDIR}/..
.include <bsd.own.mk> .include <bsd.own.mk>
MDEC= ${DESTDIR}/usr/mdec MDEC= ${DESTDIR}/usr/mdec
MDSETIMAGE?= ${DESTDIR}/usr/sbin/mdsetimage
STRIP?= strip STRIP?= strip
RAMDISK_T!= cd ${.CURDIR}/../ramdisk-rescuetiny/; \ RAMDISK_T!= cd ${.CURDIR}/../ramdisk-rescuetiny/; \
@ -18,7 +19,7 @@ RAMDISK_S!= cd ${.CURDIR}/../ramdisk-rescuesmall/; \
netbsd.INSTALL_TINY.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_TINY/netbsd ${RAMDISK_T} netbsd.INSTALL_TINY.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_TINY/netbsd ${RAMDISK_T}
cp ${KERNOBJDIR}/INSTALL_TINY/netbsd netbsd.tmp cp ${KERNOBJDIR}/INSTALL_TINY/netbsd netbsd.tmp
${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK_T} ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK_T}
nm netbsd.tmp > netbsd.INSTALL_TINY.symbols nm netbsd.tmp > netbsd.INSTALL_TINY.symbols
${STRIP} netbsd.tmp ${STRIP} netbsd.tmp
gzip -9 netbsd.tmp gzip -9 netbsd.tmp
@ -26,7 +27,7 @@ netbsd.INSTALL_TINY.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_TINY/netbsd ${RAMDISK_T}
netbsd.INSTALL_SMALL.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_SMALL/netbsd ${RAMDISK_S} netbsd.INSTALL_SMALL.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_SMALL/netbsd ${RAMDISK_S}
cp ${KERNOBJDIR}/INSTALL_SMALL/netbsd netbsd.tmp cp ${KERNOBJDIR}/INSTALL_SMALL/netbsd netbsd.tmp
${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK_S} ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK_S}
nm netbsd.tmp > netbsd.INSTALL_SMALL.symbols nm netbsd.tmp > netbsd.INSTALL_SMALL.symbols
${STRIP} netbsd.tmp ${STRIP} netbsd.tmp
gzip -9 netbsd.tmp gzip -9 netbsd.tmp

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2000/09/23 13:53:42 simonb Exp $ # $NetBSD: Makefile,v 1.5 2001/10/21 23:23:20 jmc Exp $
.include "../../../Makefile.inc" .include "../../../Makefile.inc"
@ -7,11 +7,12 @@ RAMDISK!=cd ${.CURDIR}/../ramdisk; \
${MAKE} -s -f- ${MAKE} -s -f-
INSTALL_KERNEL?=INSTALL INSTALL_KERNEL?=INSTALL
MDSETIMAGE?= mdsetimage
KERNEL=${KERNOBJDIR}/${INSTALL_KERNEL}/netbsd KERNEL=${KERNOBJDIR}/${INSTALL_KERNEL}/netbsd
all: all:
cp ${KERNEL} netbsd-${INSTALL_KERNEL} cp ${KERNEL} netbsd-${INSTALL_KERNEL}
mdsetimage -T 0x0 -v netbsd-${INSTALL_KERNEL} ${RAMDISK} ${MDSETIMAGE} -T 0x0 -v netbsd-${INSTALL_KERNEL} ${RAMDISK}
# XXX Doesn't boot with this. Why? # XXX Doesn't boot with this. Why?
# strip netbsd-${INSTALL_KERNEL} # strip netbsd-${INSTALL_KERNEL}
# XXX Reported not to boot on some machines. # XXX Reported not to boot on some machines.

View File

@ -1,11 +1,13 @@
# $NetBSD: Makefile,v 1.1 2001/04/09 20:19:55 tsubai Exp $ # $NetBSD: Makefile,v 1.2 2001/10/21 23:23:20 jmc Exp $
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
.include "${TOP}/Makefile.inc" .include "${TOP}/Makefile.inc"
.include <bsd.own.mk>
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
STRIP?= strip STRIP?= strip
MDSETIMAGE?= mdsetimage
KERNELS= netbsd.INSTALL.gz netbsd.GENERIC_MD.gz KERNELS= netbsd.INSTALL.gz netbsd.GENERIC_MD.gz
CLEANFILES+= ${KERNELS} netbsd CLEANFILES+= ${KERNELS} netbsd
@ -17,14 +19,14 @@ all dependall: ${KERNELS}
netbsd.INSTALL.gz: ${KERNOBJDIR}/INSTALL/netbsd ${RAMDISK} netbsd.INSTALL.gz: ${KERNOBJDIR}/INSTALL/netbsd ${RAMDISK}
cp ${KERNOBJDIR}/INSTALL/netbsd . cp ${KERNOBJDIR}/INSTALL/netbsd .
mdsetimage -v netbsd ${RAMDISK} ${MDSETIMAGE} -v netbsd ${RAMDISK}
${STRIP} netbsd ${STRIP} netbsd
gzip -9 netbsd gzip -9 netbsd
mv netbsd.gz ${.TARGET} mv netbsd.gz ${.TARGET}
netbsd.GENERIC_MD.gz: ${KERNOBJDIR}/GENERIC_MD/netbsd ${RAMDISK} netbsd.GENERIC_MD.gz: ${KERNOBJDIR}/GENERIC_MD/netbsd ${RAMDISK}
cp ${KERNOBJDIR}/GENERIC_MD/netbsd . cp ${KERNOBJDIR}/GENERIC_MD/netbsd .
mdsetimage -v netbsd ${RAMDISK} ${MDSETIMAGE} -v netbsd ${RAMDISK}
gzip -9 netbsd gzip -9 netbsd
mv netbsd.gz ${.TARGET} mv netbsd.gz ${.TARGET}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2001/03/05 05:07:45 wdk Exp $ # $NetBSD: Makefile,v 1.4 2001/10/21 23:23:21 jmc Exp $
.include "../../../Makefile.inc" .include "../../../Makefile.inc"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
@ -6,6 +6,7 @@
DISKBINDIR= ${RELEASEDIR}/installation/diskimage DISKBINDIR= ${RELEASEDIR}/installation/diskimage
KERNBINDIR= ${RELEASEDIR}/binary/kernel KERNBINDIR= ${RELEASEDIR}/binary/kernel
MDSETIMAGE?= mdsetimage
IMAGE= diskimage IMAGE= diskimage
IMAGESIZE= 4096 # 512 byte blocks, update disktab.diskimage if changed IMAGESIZE= 4096 # 512 byte blocks, update disktab.diskimage if changed
@ -34,7 +35,7 @@ realall: ${IMAGE}.gz
netbsd.gz: ${KERN} ${RAMDISK} netbsd.gz: ${KERN} ${RAMDISK}
cp ${KERN} netbsd cp ${KERN} netbsd
mdsetimage -v netbsd ${RAMDISK} ${MDSETIMAGE} -v netbsd ${RAMDISK}
.ifdef ECOFF_KERNEL .ifdef ECOFF_KERNEL
elf2ecoff netbsd netbsd.ecoff elf2ecoff netbsd netbsd.ecoff
rm -f netbsd.ecoff.gz rm -f netbsd.ecoff.gz

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2001/10/21 03:30:36 chs Exp $ # $NetBSD: Makefile,v 1.13 2001/10/21 23:23:21 jmc Exp $
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
@ -21,6 +21,7 @@ VND_CDEV= /dev/${VND}c
VND_CRDEV= /dev/r${VND}c VND_CRDEV= /dev/r${VND}c
CRUNCHGEN?= crunchgen CRUNCHGEN?= crunchgen
MDSETIMAGE?= mdsetimage
MTREE?= mtree MTREE?= mtree
# These are all the parameters for the root fs: (384K) # These are all the parameters for the root fs: (384K)
@ -33,7 +34,7 @@ CLEANFILES= netbsd-rd ${IMAGE}
netbsd-rd: ${IMAGE} netbsd-rd: ${IMAGE}
cp ${KERNEL} netbsd-tmp cp ${KERNEL} netbsd-tmp
mdsetimage netbsd-tmp ${IMAGE} ${MDSETIMAGE} netbsd-tmp ${IMAGE}
-mv -f netbsd-tmp $@ -mv -f netbsd-tmp $@
${IMAGE}: ${TREE} ${LISTS} ${CBIN} ${IMAGE}: ${TREE} ${LISTS} ${CBIN}

View File

@ -1,9 +1,10 @@
# $NetBSD: Makefile,v 1.3 2001/01/07 08:39:34 tsutsui Exp $ # $NetBSD: Makefile,v 1.4 2001/10/21 23:23:21 jmc Exp $
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
.include "${TOP}/Makefile.inc" .include "${TOP}/Makefile.inc"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
.include <bsd.own.mk>
.include <bsd.subdir.mk> .include <bsd.subdir.mk>
KERN= ${KERNOBJDIR}/INSTALL/netbsd KERN= ${KERNOBJDIR}/INSTALL/netbsd
@ -12,12 +13,13 @@ RAMDISK= ${RAMDISKDIR}/ramdisk.fs
KERNEL= netbsd.INSTALL.gz KERNEL= netbsd.INSTALL.gz
CLEANFILES+= ${KERNEL} netbsd.tmp netbsd.tmp.gz CLEANFILES+= ${KERNEL} netbsd.tmp netbsd.tmp.gz
MDSETIMAGE?= mdsetimage
all: ${KERNEL} all: ${KERNEL}
${KERNEL}: ${KERN} ${RAMDISK} ${KERNEL}: ${KERN} ${RAMDISK}
cp ${KERN} netbsd.tmp cp ${KERN} netbsd.tmp
mdsetimage -v netbsd.tmp ${RAMDISK} ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
gzip -9 netbsd.tmp gzip -9 netbsd.tmp
mv netbsd.tmp.gz ${.TARGET} mv netbsd.tmp.gz ${.TARGET}

View File

@ -1,14 +1,16 @@
# $NetBSD: Makefile,v 1.2 2000/05/02 16:06:52 sjg Exp $ # $NetBSD: Makefile,v 1.3 2001/10/21 23:23:21 jmc Exp $
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
.include "${TOP}/Makefile.inc" .include "${TOP}/Makefile.inc"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
.include <bsd.own.mk>
IMAGE= boot.fs IMAGE= boot.fs
KERN= ${KERNOBJDIR}/INSTALL/netbsd KERN= ${KERNOBJDIR}/INSTALL/netbsd
MOUNT_POINT?= /mnt MOUNT_POINT?= /mnt
MDSETIMAGE?= mdsetimage
VND?= vnd0 VND?= vnd0
VND_DEV= /dev/${VND}a VND_DEV= /dev/${VND}a
VND_RDEV= /dev/r${VND}a VND_RDEV= /dev/r${VND}a
@ -61,7 +63,7 @@ unconfig:
netbsd.ram.gz: ${KERN} ${RAMDISK} netbsd.ram.gz: ${KERN} ${RAMDISK}
cp ${KERN} netbsd.tmp cp ${KERN} netbsd.tmp
mdsetimage -v netbsd.tmp ${RAMDISK} ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
gzip -9 netbsd.tmp gzip -9 netbsd.tmp
mv netbsd.tmp.gz ${.TARGET} mv netbsd.tmp.gz ${.TARGET}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.19 2001/10/21 23:20:05 jmc Exp $ # $NetBSD: Makefile.inc,v 1.20 2001/10/21 23:23:22 jmc Exp $
# TOP is assumed to be defined by Makefile including this one. # TOP is assumed to be defined by Makefile including this one.
@ -20,6 +20,7 @@ MTREECONF= ${COMMONDIR}/mtree.conf
KERNEL?= ${KERNOBJDIR}/INSTALL/netbsd KERNEL?= ${KERNOBJDIR}/INSTALL/netbsd
CRUNCHGEN?= crunchgen CRUNCHGEN?= crunchgen
MDSETIMAGE?= mdsetimage
MTREE?= mtree MTREE?= mtree
STRIP?= strip STRIP?= strip
@ -83,7 +84,7 @@ ${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
netbsd.gz: ramdisk.fs netbsd.gz: ramdisk.fs
cp ${KERNEL} /var/tmp/$$$$; \ cp ${KERNEL} /var/tmp/$$$$; \
mdsetimage -v /var/tmp/$$$$ ramdisk.fs; \ ${MDSETIMAGE} -v /var/tmp/$$$$ ramdisk.fs; \
${STRIP} /var/tmp/$$$$; \ ${STRIP} /var/tmp/$$$$; \
gzip -9 </var/tmp/$$$$ >netbsd.gz; \ gzip -9 </var/tmp/$$$$ >netbsd.gz; \
rm /var/tmp/$$$$ rm /var/tmp/$$$$
@ -93,5 +94,6 @@ clean cleandir distclean:
/bin/rm -f netbsd* /bin/rm -f netbsd*
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
.include <bsd.own.mk>
.include <bsd.obj.mk> .include <bsd.obj.mk>
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2001/10/15 16:22:50 uch Exp $ # $NetBSD: Makefile,v 1.2 2001/10/21 23:23:22 jmc Exp $
.include "../Makefile.inc" .include "../Makefile.inc"
@ -19,11 +19,12 @@ release:
.else .else
MINIROOTDIR = ${.CURDIR}/../miniroot MINIROOTDIR = ${.CURDIR}/../miniroot
MINIROOTOBJ != cd ${MINIROOTDIR}; ${MAKE} print-objdir MINIROOTOBJ != cd ${MINIROOTDIR}; ${MAKE} print-objdir
MDSETIMAGE?= mdsetimage
release: release:
rm -f netbsd netbsd.gz rm -f netbsd netbsd.gz
cp ${KERNOBJDIR}/RAMDISK/netbsd . cp ${KERNOBJDIR}/RAMDISK/netbsd .
mdsetimage netbsd ${MINIROOTOBJ}/miniroot.fs ${MDSETIMAGE} netbsd ${MINIROOTOBJ}/miniroot.fs
gzip -9 netbsd gzip -9 netbsd
${IINST} netbsd.gz ${ITARGET}/. ${IINST} netbsd.gz ${ITARGET}/.
${.CURDIR}/../sets/makesums -t ${ITARGET} '*.gz' ${.CURDIR}/../sets/makesums -t ${ITARGET} '*.gz'

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.19 2001/03/24 15:31:23 simonb Exp $ # $NetBSD: Makefile,v 1.20 2001/10/21 23:23:22 jmc Exp $
.include "../../../Makefile.inc" .include "../../../Makefile.inc"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
@ -22,12 +22,13 @@ VND?= vnd0
VND_DEV= /dev/${VND}c VND_DEV= /dev/${VND}c
VND_RDEV= /dev/r${VND}c VND_RDEV= /dev/r${VND}c
MOUNT_POINT?= /mnt MOUNT_POINT?= /mnt
MDSETIMAGE?= mdsetimage
all: netbsd.gz ${IMAGE}.gz all: netbsd.gz ${IMAGE}.gz
netbsd.gz: ${KERN} ${RAMDISK} netbsd.gz: ${KERN} ${RAMDISK}
cp ${KERN} netbsd cp ${KERN} netbsd
mdsetimage -v netbsd ${RAMDISK} ${MDSETIMAGE} -v netbsd ${RAMDISK}
elf2ecoff netbsd netbsd.ecoff elf2ecoff netbsd netbsd.ecoff
rm -f netbsd.ecoff.gz rm -f netbsd.ecoff.gz
gzip -9 netbsd.ecoff gzip -9 netbsd.ecoff

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.1 2001/01/16 16:53:58 nonaka Exp $ # $NetBSD: Makefile.inc,v 1.2 2001/10/21 23:23:22 jmc Exp $
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
@ -33,4 +33,5 @@ release:
clean cleandir distclean: clean cleandir distclean:
rm -f *.core ${IMAGE} ${CLEANFILES} rm -f *.core ${IMAGE} ${CLEANFILES}
.include <bsd.own.mk>
.include <bsd.obj.mk> .include <bsd.obj.mk>

View File

@ -1,15 +1,17 @@
# $NetBSD: Makefile,v 1.1 2001/01/16 16:53:59 nonaka Exp $ # $NetBSD: Makefile,v 1.2 2001/10/21 23:23:22 jmc Exp $
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
.include "${TOP}/Makefile.inc" .include "${TOP}/Makefile.inc"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
.include <bsd.own.mk>
.include <bsd.subdir.mk> .include <bsd.subdir.mk>
KERN= ${KERNOBJDIR}/INSTALL/netbsd KERN= ${KERNOBJDIR}/INSTALL/netbsd
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
KERNEL= netbsd.INSTALL.gz KERNEL= netbsd.INSTALL.gz
MDSETIMAGE?= mdsetimage
CLEANFILES+= ${KERNEL} netbsd.tmp netbsd.tmp.gz CLEANFILES+= ${KERNEL} netbsd.tmp netbsd.tmp.gz
@ -17,7 +19,7 @@ all: ${KERNEL}
${KERNEL}: ${KERN} ${RAMDISK} ${KERNEL}: ${KERN} ${RAMDISK}
cp ${KERN} netbsd.tmp cp ${KERN} netbsd.tmp
mdsetimage -v netbsd.tmp ${RAMDISK} ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
gzip -9 netbsd.tmp gzip -9 netbsd.tmp
mv netbsd.tmp.gz ${.TARGET} mv netbsd.tmp.gz ${.TARGET}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.28 2001/10/21 23:21:53 jmc Exp $ # $NetBSD: Makefile,v 1.29 2001/10/21 23:23:23 jmc Exp $
# #
# boot.fs is the image for disk 1 of the two-set floppy based installation # boot.fs is the image for disk 1 of the two-set floppy based installation
# method. # method.
@ -27,6 +27,7 @@ FD?= fd0
FD_RDEV= /dev/r${FD}a FD_RDEV= /dev/r${FD}a
IMAGE?= boot.fs IMAGE?= boot.fs
MDEC= ${DESTDIR}/usr/mdec MDEC= ${DESTDIR}/usr/mdec
MDSETIMAGE?= mdsetimage
OBJCOPY?= objcopy OBJCOPY?= objcopy
LISTS= ${.CURDIR}/list LISTS= ${.CURDIR}/list
@ -71,7 +72,7 @@ unconfig:
netbsd.ram: ${KERN} ${RAMDISK} netbsd.ram: ${KERN} ${RAMDISK}
cp ${KERN} netbsd.tmp cp ${KERN} netbsd.tmp
mdsetimage -v netbsd.tmp ${RAMDISK} ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
strip netbsd.tmp strip netbsd.tmp
mv netbsd.tmp ${.TARGET} mv netbsd.tmp ${.TARGET}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2001/10/13 06:15:20 jmc Exp $ # $NetBSD: Makefile,v 1.8 2001/10/21 23:23:23 jmc Exp $
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
MINIROOT= ${TOP}/../miniroot MINIROOT= ${TOP}/../miniroot
@ -52,6 +52,7 @@ CRUNCHCONF= ${CBIN}.conf
MTREECONF= mtree.conf MTREECONF= mtree.conf
CRUNCHGEN?= crunchgen CRUNCHGEN?= crunchgen
MDSETIMAGE?= mdsetimage
MTREE?= mtree MTREE?= mtree
DISKTYPE?= miniroot DISKTYPE?= miniroot
@ -59,7 +60,7 @@ all: netbsd.INSTALL ${IMAGE}
netbsd.INSTALL: ${KERN} ${IMAGE} netbsd.INSTALL: ${KERN} ${IMAGE}
cp ${KERN} netbsd.tmp cp ${KERN} netbsd.tmp
mdsetimage -v netbsd.tmp ${IMAGE} ${MDSETIMAGE} -v netbsd.tmp ${IMAGE}
strip netbsd.tmp strip netbsd.tmp
mv netbsd.tmp ${.TARGET} mv netbsd.tmp ${.TARGET}

View File

@ -1,9 +1,10 @@
# $NetBSD: Makefile,v 1.2 2001/10/13 06:15:20 jmc Exp $ # $NetBSD: Makefile,v 1.3 2001/10/21 23:23:23 jmc Exp $
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
# This include just sets REV=XX # This include just sets REV=XX
.include "${TOP}/Makefile.inc" .include "${TOP}/Makefile.inc"
.include <bsd.own.mk>
IMAGE= ramdisk IMAGE= ramdisk
CBIN= rd_bin CBIN= rd_bin
@ -14,6 +15,7 @@ LISTS= ${TOP}/common/${CBIN}.list \
${TOP}/common/${IMAGE}.list ${TOP}/common/${IMAGE}.list
KERNEL = ${KERNOBJDIR}/RAMDISK/netbsd KERNEL = ${KERNOBJDIR}/RAMDISK/netbsd
MDSETIMAGE?= mdsetimage
MOUNT_POINT?= /mnt MOUNT_POINT?= /mnt
VND?= vnd1 VND?= vnd1
@ -34,7 +36,7 @@ all: $(KERNELS)
netbsd.RAMDISK : ${IMAGE}.fs netbsd.RAMDISK : ${IMAGE}.fs
cp ${KERNEL} netbsd-tmp cp ${KERNEL} netbsd-tmp
mdsetimage -v netbsd-tmp ${IMAGE}.fs ${MDSETIMAGE} -v netbsd-tmp ${IMAGE}.fs
-mv -f netbsd-tmp $@ -mv -f netbsd-tmp $@
${IMAGE}.fs: ${TREE} ${LISTS} ${CBIN} ${IMAGE}.fs: ${TREE} ${LISTS} ${CBIN}

View File

@ -1,9 +1,10 @@
# $NetBSD: Makefile,v 1.19 2001/10/13 06:15:21 jmc Exp $ # $NetBSD: Makefile,v 1.20 2001/10/21 23:23:23 jmc Exp $
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
# This include just sets REV=XX # This include just sets REV=XX
.include "${TOP}/Makefile.inc" .include "${TOP}/Makefile.inc"
.include <bsd.own.mk>
IMAGE= ramdisk IMAGE= ramdisk
CBIN= rd_bin CBIN= rd_bin
@ -26,6 +27,7 @@ DISKTYPE= rdroot
SIZE= 400k SIZE= 400k
# bigendian, minfree, opt, b/i , cpg # bigendian, minfree, opt, b/i , cpg
NEWFSARGS= -B be -m 0 -o space -i 4096 -c 20 NEWFSARGS= -B be -m 0 -o space -i 4096 -c 20
MDSETIMAGE?= mdsetimage
MTREE?= mtree MTREE?= mtree
KERNELS= netbsd.RAMDISK netbsd.RAMDISK3X KERNELS= netbsd.RAMDISK netbsd.RAMDISK3X
@ -35,12 +37,12 @@ all: $(KERNELS)
netbsd.RAMDISK : ${IMAGE}.fs netbsd.RAMDISK : ${IMAGE}.fs
cp ${KERNEL3} netbsd-tmp cp ${KERNEL3} netbsd-tmp
mdsetimage -v netbsd-tmp ${IMAGE}.fs ${MDSETIMAGE} -v netbsd-tmp ${IMAGE}.fs
-mv -f netbsd-tmp $@ -mv -f netbsd-tmp $@
netbsd.RAMDISK3X : ${IMAGE}.fs netbsd.RAMDISK3X : ${IMAGE}.fs
cp ${KERNEL3X} netbsd-tmp cp ${KERNEL3X} netbsd-tmp
mdsetimage -v netbsd-tmp ${IMAGE}.fs ${MDSETIMAGE} -v netbsd-tmp ${IMAGE}.fs
-mv -f netbsd-tmp $@ -mv -f netbsd-tmp $@
${IMAGE}.fs: ${TREE} ${LISTS} ${CBIN} ${IMAGE}.fs: ${TREE} ${LISTS} ${CBIN}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2001/03/04 20:33:03 matt Exp $ # $NetBSD: Makefile,v 1.3 2001/10/21 23:23:23 jmc Exp $
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
@ -8,13 +8,14 @@ TOP= ${.CURDIR}/..
MDEC= ${DESTDIR}/usr/mdec MDEC= ${DESTDIR}/usr/mdec
STRIP?= strip STRIP?= strip
MDSETIMAGE?= ${DESTDIR}/usr/sbin/mdsetimage
RAMDISK!= cd ${.CURDIR}/../ramdisk/ && ${PRINTOBJDIR} RAMDISK!= cd ${.CURDIR}/../ramdisk/ && ${PRINTOBJDIR}
.for kernel in INSTALL .for kernel in INSTALL
netbsd.${kernel}.gz: .NOTMAIN ${KERNOBJDIR}/${kernel}/netbsd ${RAMDISK} netbsd.${kernel}.gz: .NOTMAIN ${KERNOBJDIR}/${kernel}/netbsd ${RAMDISK}
cp ${KERNOBJDIR}/${kernel}/netbsd netbsd.tmp cp ${KERNOBJDIR}/${kernel}/netbsd netbsd.tmp
${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK}/ramdisk.fs ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}/ramdisk.fs
${STRIP} netbsd.tmp ${STRIP} netbsd.tmp
gzip -9 netbsd.tmp gzip -9 netbsd.tmp
mv netbsd.tmp.gz ${.TARGET} mv netbsd.tmp.gz ${.TARGET}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.16 2000/11/28 03:03:26 minoura Exp $ # $NetBSD: Makefile.inc,v 1.17 2001/10/21 23:23:24 jmc Exp $
# TOP is assumed to be defined by Makefile including this one. # TOP is assumed to be defined by Makefile including this one.
@ -18,6 +18,7 @@ KERN?= netbsd-xxx
KERNNAME?= netbsd.xxx KERNNAME?= netbsd.xxx
GZNAME?= ${KERNNAME}.gz GZNAME?= ${KERNNAME}.gz
MDEC= ${DESTDIR}/usr/mdec MDEC= ${DESTDIR}/usr/mdec
MDSETIMAGE?= mdsetimage
LISTS= ${COMMONDIR}/list LISTS= ${COMMONDIR}/list
.if ${RAMDISKDIR} != "" .if ${RAMDISKDIR} != ""
@ -61,7 +62,7 @@ unconfig:
${KERNNAME}: ${KERN} ${RAMDISK} ${KERNNAME}: ${KERN} ${RAMDISK}
-/bin/rm -f netbsd.tmp* -/bin/rm -f netbsd.tmp*
cp ${KERN} netbsd.tmp cp ${KERN} netbsd.tmp
mdsetimage -v netbsd.tmp ${RAMDISK} ${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
mv -f netbsd.tmp ${.TARGET} mv -f netbsd.tmp ${.TARGET}
.else .else
${KERNNAME}: ${KERN} ${KERNNAME}: ${KERN}
@ -86,4 +87,5 @@ release:
clean cleandir distclean: clean cleandir distclean:
/bin/rm -f *.core ${IMAGE} ${CLEANFILES} /bin/rm -f *.core ${IMAGE} ${CLEANFILES}
.include <bsd.own.mk>
.include <bsd.obj.mk> .include <bsd.obj.mk>