yet another distrib overhaul:

- move guts of distrib/Makefile.inc to distrib/common/Makefile.distrib
  (fixes problem caused by implicit include of ../Makefile.inc in certain
  submake conditions triggered by makefiles not yet in tree)
- removed mkdir of ${RELEASEDIR}/*;  rely upon "snap_pre" target of
  etc/Makefile to create all the release directories
- renamed RELINSTALL to RELEASE_INSTALL
- renamed FLOPPYINSTDIR to FLOPPY_RELEASEDIR
- renamed MDSETDIR to MDSET_RELEASEDIR
- removed ITARGET
- move release target from top level to appropriate subdirectory
- ensure release target has correct depends
- replace miniroot's IMAGE_MD_POST with common/Makefile.image IMAGEPOSTBUILD
- Makefile.image: add realall: ${IMAGE}
This commit is contained in:
lukem 2002-05-02 18:02:14 +00:00
parent e65d64e370
commit ed8e534c7e
107 changed files with 493 additions and 712 deletions

View File

@ -1,19 +1,3 @@
# $NetBSD: Makefile.inc,v 1.7 2002/04/26 15:50:21 lukem Exp $ # $NetBSD: Makefile.inc,v 1.8 2002/05/02 18:02:14 lukem Exp $
.include "../Makefile.inc" .include "../Makefile.inc"
# DISTRIBDIR - Top level of distrib
#
DISTRIBDIR= ${NETBSDSRCDIR}/distrib
# DISTRIBREV - NetBSD version without dots, as in "15ZD"
# DISTRIBVER - NetBSD version with dots, as in "1.5ZD"
#
DISTRIBREV!= sh ${NETBSDSRCDIR}/sys/conf/osrelease.sh -s
DISTRIBVER!= sh ${NETBSDSRCDIR}/sys/conf/osrelease.sh
# MAKESUMS - runs makesums with the appropriate environment setup
# RELINSTALL - installs release binaries
#
MAKESUMS= CKSUM=${CKSUM:Q} sh ${DISTRIBDIR}/sets/makesums
RELINSTALL= ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE}

View File

@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.2 2002/04/22 19:24:28 bjh21 Exp $ # $NetBSD: Makefile,v 1.3 2002/05/02 18:02:16 lukem Exp $
SUBDIR= instkernel SUBDIR= instkernel
TARGETS+= release
TARGETS+=release
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.4 2002/04/30 15:37:33 lukem Exp $ # $NetBSD: Makefile,v 1.5 2002/05/02 18:02:17 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 1924k IMAGESIZE= 1924k
@ -26,8 +26,8 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
MDSETTARGETS= INSTALL ramdisk.fs - MDSETTARGETS= INSTALL ${IMAGE} -
MDSETDIR= installation/misc MDSET_RELEASEDIR= installation/misc
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"

View File

@ -1,33 +1,24 @@
# $NetBSD: Makefile,v 1.13 2002/04/26 15:50:23 lukem Exp $ # $NetBSD: Makefile,v 1.14 2002/05/02 18:02:17 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
ITARGET= ${RELEASEDIR}/installation
KERNELS= INSTALL
SUBDIR= ramdisk .WAIT kernels SUBDIR= ramdisk .WAIT kernels
TARGETS+= release
.include <bsd.subdir.mk>
RAMDISKOBJ!= cd ${.CURDIR}/ramdisk && ${PRINTOBJDIR}
KERNELOBJ!= cd ${.CURDIR}/kernels && ${PRINTOBJDIR}
release: check_RELEASEDIR release: check_RELEASEDIR
${RELINSTALL} ${RAMDISKOBJ}/ramdisk.fs \
${ITARGET}/misc/ramdisk-${DISTRIBREV}.fs
gzip -9f ${ITARGET}/misc/ramdisk-${DISTRIBREV}.fs
.for kern in ${KERNELS}
${RELINSTALL} ${KERNELOBJ}/netbsd.${kern}.gz ${ITARGET}/kernel/
.endfor
cd ${NETBSDSRCDIR}/sys/arch/acorn32/stand && \ cd ${NETBSDSRCDIR}/sys/arch/acorn32/stand && \
./export-BtNetBSD && \ ./export-BtNetBSD && \
rm -f ${ITARGET}/misc/BtNetBSD.tgz && \ rm -f ${RELEASEDIR}/installation/misc/BtNetBSD.tgz && \
gzip -9 -c BtNetBSD.tar > ${ITARGET}/misc/BtNetBSD.tgz && \ gzip -9 -c BtNetBSD.tar > \
${RELEASEDIR}/installation/misc/BtNetBSD.tgz && \
rm -f BtNetBSD.tar && \ rm -f BtNetBSD.tar && \
mv -f BtNetBSD.zip ${ITARGET}/misc && \ mv -f BtNetBSD.zip ${RELEASEDIR}/installation/misc && \
${RELINSTALL} ${DISTRIBDIR}/notes/acorn32/prep.RISCOS ${RELEASEDIR}/ && \ ${RELEASE_INSTALL} ${DISTRIBDIR}/notes/acorn32/prep.RISCOS \
${RELEASEDIR}/
cd ${.CURDIR} && \ cd ${.CURDIR} && \
rm -f ${ITARGET}/misc/gzip_ff8.bin && \ rm -f ${RELEASEDIR}/installation/misc/gzip_ff8.bin && \
uudecode < gzip_ff8.bin.uue && \ uudecode < gzip_ff8.bin.uue && \
mv -f gzip_ff8.bin ${ITARGET}/misc/ mv -f gzip_ff8.bin ${RELEASEDIR}/installation/misc/
.include <bsd.subdir.mk>

View File

@ -1,13 +1,13 @@
# $NetBSD: Makefile,v 1.13 2002/04/26 15:50:23 lukem Exp $ # $NetBSD: Makefile,v 1.14 2002/05/02 18:02:17 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= INSTALL ${RAMDISK} - MDSETTARGETS= INSTALL ${RAMDISK} -
MDSETDIR= binary/kernel MDSET_RELEASEDIR= installation/kernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.13 2002/04/26 15:50:23 lukem Exp $ # $NetBSD: Makefile,v 1.14 2002/05/02 18:02:18 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 1924k IMAGESIZE= 1924k
@ -21,17 +21,13 @@ IMAGEDEPENDS= ${CRUNCHBIN} \
${NETBSDSRCDIR}/etc/netconfig ${NETBSDSRCDIR}/etc/protocols \ ${NETBSDSRCDIR}/etc/netconfig ${NETBSDSRCDIR}/etc/protocols \
${NETBSDSRCDIR}/etc/services ${NETBSDSRCDIR}/etc/services
IMAGE_RELEASEDIR= installation/misc
# Use stubs to eliminate some large stuff from libc # Use stubs to eliminate some large stuff from libc
HACKSRC= ${DISTRIBDIR}/utils/libhack HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"

View File

@ -1,25 +1,14 @@
# $NetBSD: Makefile,v 1.19 2002/05/02 13:04:48 lukem Exp $ # $NetBSD: Makefile,v 1.20 2002/05/02 18:02:18 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
SUBDIR= instkernel # floppy-GENERIC SUBDIR= instkernel # floppy-GENERIC
TARGETS+= release
ITARGET= ${RELEASEDIR}/installation release: check_RELEASEDIR .WAIT README.files
.for i in floppy diskimage instkernel
CDHDTAPEOBJ!= cd ${.CURDIR}/instkernel/cd-hd-tape && ${PRINTOBJDIR} ${RELEASE_INSTALL} ${.CURDIR}/README.files ${RELEASEDIR}/installation/$i
FDSETOBJ!= cd ${.CURDIR}/instkernel/fdset && ${PRINTOBJDIR}
INSTKERNOBJ!= cd ${.CURDIR}/instkernel/instkernel && ${PRINTOBJDIR}
GENERICOBJ!= cd ${.CURDIR}/floppy-GENERIC && ${PRINTOBJDIR}
release: check_RELEASEDIR
.for i in floppy diskimage instkernel tapeimage
${RELINSTALL} ${.CURDIR}/README.files ${ITARGET}/$i/.
.endfor .endfor
${RELINSTALL} ${CDHDTAPEOBJ}/cdhdtape1.fs ${ITARGET}/diskimage/cdhdtape
${RELINSTALL} ${FDSETOBJ}/disk1.fs ${ITARGET}/floppy/disk1of2
${RELINSTALL} ${FDSETOBJ}/disk2.fs ${ITARGET}/floppy/disk2of2
${RELINSTALL} ${INSTKERNOBJ}/netbsd.INSTALL.gz ${ITARGET}/instkernel/netbsd.gz
# ${RELINSTALL} ${GENERICOBJ}/GENERIC.fs ${ITARGET}/misc/.
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,6 +1,8 @@
# $NetBSD: Makefile,v 1.14 2002/04/14 08:30:41 lukem Exp $ # $NetBSD: Makefile,v 1.15 2002/05/02 18:02:18 lukem Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include "../../../Makefile.inc"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
MOUNT_POINT?= /mnt MOUNT_POINT?= /mnt
@ -60,5 +62,7 @@ clean cleandir distclean:
# nothing to do here # nothing to do here
depend includes lint regress tags: depend includes lint regress tags:
.include <bsd.own.mk> release: check_RELEASEDIR .WAIT GENERIC.fs
.include <bsd.obj.mk> ${RELEASE_INSTALL} GENERIC.fs ${RELEASEDIR}/installation/misc
.include <bsd.prog.mk>

View File

@ -1,5 +1,7 @@
# $NetBSD: Makefile,v 1.3 2002/02/11 07:32:54 thorpej Exp $ # $NetBSD: Makefile,v 1.4 2002/05/02 18:02:19 lukem Exp $
SUBDIR= ramdisk .WAIT instkernel .WAIT fdset cd-hd-tape SUBDIR= ramdisk .WAIT instkernel .WAIT fdset cd-hd-tape
TARGETS+= release
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.10 2002/05/02 13:04:49 lukem Exp $ # $NetBSD: Makefile,v 1.11 2002/05/02 18:02:19 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
FLOPPYBASE= cdhdtape FLOPPYBASE= cdhdtape
FLOPPYSIZE= 5760 FLOPPYSIZE= 5760
@ -18,4 +18,8 @@ FLOPPYINSTBOOT=\
.include "${DISTRIBDIR}/common/Makefile.tarfloppy" .include "${DISTRIBDIR}/common/Makefile.tarfloppy"
release: check_RELEASEDIR .WAIT ${FLOPPYBASE}1.fs
${RELEASE_INSTALL} ${FLOPPYBASE}1.fs \
${RELEASEDIR}/installation/diskimage/cdhdtape
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.9 2002/04/30 15:08:45 lukem Exp $ # $NetBSD: Makefile,v 1.10 2002/05/02 18:02:20 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
FLOPPYBASE= disk FLOPPYBASE= disk
FLOPPYSIZE= 2880 FLOPPYSIZE= 2880
@ -17,4 +17,10 @@ FLOPPYINSTBOOT=\
.include "${DISTRIBDIR}/common/Makefile.tarfloppy" .include "${DISTRIBDIR}/common/Makefile.tarfloppy"
release: check_RELEASEDIR .WAIT ${FLOPPYBASE}1.fs
${RELEASE_INSTALL} ${FLOPPYBASE}1.fs \
${RELEASEDIR}/installation/floppy/disk1of2
${RELEASE_INSTALL} ${FLOPPYBASE}2.fs \
${RELEASEDIR}/installation/floppy/disk2of2
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,13 +1,13 @@
# $NetBSD: Makefile,v 1.23 2002/04/26 15:50:24 lukem Exp $ # $NetBSD: Makefile,v 1.24 2002/05/02 18:02:20 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= INSTALL ${RAMDISK} - MDSETTARGETS= INSTALL ${RAMDISK} netbsd
MDSETDIR= binary/kernel MDSET_RELEASEDIR= installation/instkernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.19 2002/04/26 15:50:24 lukem Exp $ # $NetBSD: Makefile,v 1.20 2002/05/02 18:02:20 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 4480k IMAGESIZE= 4480k
@ -16,7 +16,7 @@ IMAGEENDIAN= le
MAKEDEVTARGETS= minimal MAKEDEVTARGETS= minimal
IMAGEDEPENDS= ${CRUNCHBIN} \ IMAGEDEPENDS= ${CRUNCHBIN} \
disktab.preinstall dot.hdprofile dot.profile \ disktab.preinstall dot.hdprofile dot.profile \
${.CURDIR}/../src/install.sh ${.CURDIR}/../src/upgrade.sh \ install.sh upgrade.sh \
${DESTDIR}/usr/mdec/boot ${DESTDIR}/usr/mdec/bootxx_ffs \ ${DESTDIR}/usr/mdec/boot ${DESTDIR}/usr/mdec/bootxx_ffs \
${DESTDIR}/usr/share/misc/termcap \ ${DESTDIR}/usr/share/misc/termcap \
${DISTRIBDIR}/utils/script-installer/dot.commonutils \ ${DISTRIBDIR}/utils/script-installer/dot.commonutils \
@ -29,14 +29,10 @@ INSTALLNOTES!= cd ${DISTRIBDIR}/notes/alpha && ${MAKE} echomore
IMAGEDEPENDS+= ${INSTALLNOTES} IMAGEDEPENDS+= ${INSTALLNOTES}
PARSELISTENV= INSTALLNOTES=${INSTALLNOTES:Q} PWD_MKDB=${PWD_MKDB:Q} PARSELISTENV= INSTALLNOTES=${INSTALLNOTES:Q} PWD_MKDB=${PWD_MKDB:Q}
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# $NetBSD: install.sh,v 1.5 2000/06/14 22:52:41 cgd Exp $ # $NetBSD: install.sh,v 1.1 2002/05/02 18:02:21 lukem Exp $
# #
# Copyright (c) 1997 Perry E. Metzger # Copyright (c) 1997 Perry E. Metzger
# Copyright (c) 1994 Christopher G. Demetriou # Copyright (c) 1994 Christopher G. Demetriou

View File

@ -1,4 +1,4 @@
# $NetBSD: list,v 1.18 2002/04/26 15:50:24 lukem Exp $ # $NetBSD: list,v 1.19 2002/05/02 18:02:21 lukem Exp $
SRCDIRS bin sbin usr.bin/less usr.bin usr.sbin gnu/usr.bin SRCDIRS bin sbin usr.bin/less usr.bin usr.sbin gnu/usr.bin
@ -94,8 +94,8 @@ COPY ${CURDIR}/dot.profile .profile
COPY ${CURDIR}/dot.hdprofile tmp/.hdprofile COPY ${CURDIR}/dot.hdprofile tmp/.hdprofile
# old-style installation tools # old-style installation tools
COPY ${CURDIR}/../src/install.sh install 755 COPY ${CURDIR}/install.sh install 755
COPY ${CURDIR}/../src/upgrade.sh upgrade 755 COPY ${CURDIR}/upgrade.sh upgrade 755
# and the install notes # and the install notes
COPY ${INSTALLNOTES} INSTALL.more COPY ${INSTALLNOTES} INSTALL.more

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# $NetBSD: upgrade.sh,v 1.5 2000/06/14 22:52:41 cgd Exp $ # $NetBSD: upgrade.sh,v 1.1 2002/05/02 18:02:21 lukem Exp $
# #
# Copyright (c) 1997 Perry E. Metzger # Copyright (c) 1997 Perry E. Metzger
# Copyright (c) 1994 Christopher G. Demetriou # Copyright (c) 1994 Christopher G. Demetriou

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.9 2002/04/16 20:46:19 heinz Exp $ # $NetBSD: Makefile.inc,v 1.10 2002/05/02 18:02:24 lukem Exp $
IMAGESIZE= 5m IMAGESIZE= 5m
IMAGEENDIAN= be IMAGEENDIAN= be
@ -8,4 +8,4 @@ IMAGEDEPENDS+= ${ARCHDIR}/disktab.shadow ${ARCHDIR}/dot.profile \
${DESTDIR}/usr/mdec/boot.amiga ${DESTDIR}/etc/spwd.db \ ${DESTDIR}/usr/mdec/boot.amiga ${DESTDIR}/etc/spwd.db \
${KERNOBJDIR}/INSTALL/netbsd ${KERNOBJDIR}/INSTALL/netbsd
IMAGE_MD_POST= dd if=${DESTDIR}/usr/mdec/bootxx_ffs of=${IMAGE} bs=8192 conv=notrunc IMAGEPOSTBUILD= dd if=${DESTDIR}/usr/mdec/bootxx_ffs of=${IMAGE} bs=8192 conv=notrunc

View File

@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.1 2002/04/14 14:17:12 tsutsui Exp $ # $NetBSD: Makefile,v 1.2 2002/05/02 18:02:24 lukem Exp $
SUBDIR= ramdisk .WAIT instkernel
SUBDIR= ramdisk .WAIT instkernel
TARGETS+= release TARGETS+= release
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.3 2002/04/26 15:50:25 lukem Exp $ # $NetBSD: Makefile,v 1.4 2002/05/02 18:02:25 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
@ -14,7 +14,7 @@ MDSET.-.post= OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
netbsd.tmp netbsd.ecoff && \ netbsd.tmp netbsd.ecoff && \
gzip -9f netbsd.ecoff gzip -9f netbsd.ecoff
MDSETDIR= binary/kernel MDSET_RELEASEDIR= binary/kernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.6 2002/04/27 17:15:48 tsutsui Exp $ # $NetBSD: Makefile,v 1.7 2002/05/02 18:02:25 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 2m IMAGESIZE= 2m
@ -27,13 +27,10 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.3 2002/04/12 21:39:18 leo Exp $ # $NetBSD: Makefile,v 1.4 2002/05/02 18:02:25 lukem Exp $
SUBDIR= floppies SUBDIR= floppies
TARGETS+= release
TARGETS+=release
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,8 +1,6 @@
# $NetBSD: Makefile,v 1.1.1.1 2002/04/12 21:11:46 leo Exp $ # $NetBSD: Makefile,v 1.2 2002/05/02 18:02:26 lukem Exp $
SUBDIR= install SUBDIR= install prepare
SUBDIR+= prepare TARGETS+= release
TARGETS+=release
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,3 +0,0 @@
# $NetBSD: Makefile.inc,v 1.1.1.1 2002/04/12 21:11:46 leo Exp $
.include "${.CURDIR}/../../../Makefile.inc"

View File

@ -1,56 +1,35 @@
# $NetBSD: Makefile.images,v 1.2 2002/04/26 15:50:25 lukem Exp $ # $NetBSD: Makefile.images,v 1.3 2002/05/02 18:02:28 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
CRUNCHBIN= instbin CRUNCHBIN= instbin
LISTS= ${.CURDIR}/list ${.CURDIR}/../common/list.images LISTS= ${.CURDIR}/list ${.CURDIR}/../common/list.images
MTREECONF= ${DISTRIBDIR}/common/mtree.common MTREECONF= ${DISTRIBDIR}/common/mtree.common
IMAGEDEPENDS+= ${CRUNCHBIN} ${KERNSRCDIR}/conf/osrelease.sh \ IMAGEENDIAN= be
IMAGEDEPENDS+= ${CRUNCHBIN} \
${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd
PARSELISTENV= ARCHDIR=${ARCHDIR:Q} \
DISTRIBREV=${DISTRIBREV:Q} \ IMAGE_RELEASEDIR= installation/miniroot
DISTRIBVER=${DISTRIBVER:Q} \
KERNOBJDIR=${KERNOBJDIR:Q}
MAKESUMS= CKSUM=${CKSUM:Q} sh ${DISTRIBDIR}/sets/makesums
.if defined(USE_SYSINST) .if defined(USE_SYSINST)
LISTS+= ${DISTRIBDIR}/common/list.sysinst LISTS+= ${DISTRIBDIR}/common/list.sysinst
.endif .endif
realall: check_DESTDIR .WAIT image
@true
release: check_RELEASEDIR .WAIT image
mkdir -p ${RELEASEDIR}/installation/miniroot
gzip -c -9 < ${.OBJDIR}/${IMAGE} \
> ${RELEASEDIR}/installation/miniroot/${IMAGE}.gz
${MAKESUMS} -t ${RELEASEDIR}/installation/miniroot ${IMAGE}.gz
image: ${IMAGE} image_md_post
image_md_post:
# nothing here; refer to machine-dependant ${ARCHDIR}/Makefile.inc
#
# Using libhack:opendir() causes linking errors
#
NOLIBHACKOPENDIR=1
# Use stubs to eliminate some large stuff from libc # Use stubs to eliminate some large stuff from libc
HACKSRC=${DISTRIBDIR}/utils/libhack HACKSRC=${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
# This is listed in instbin.conf but is built here.
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.if defined(MAKEDEVTARGETS) .if defined(MAKEDEVTARGETS)
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.endif .endif
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release: check_RELEASEDIR
${MAKESUMS} -t ${RELEASEDIR}/${IMAGE_RELEASEDIR} ${IMAGE}.gz
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,14 +1,9 @@
# $NetBSD: Makefile,v 1.1.1.1 2002/04/12 21:11:47 leo Exp $ # $NetBSD: Makefile,v 1.2 2002/05/02 18:02:28 lukem Exp $
IMAGESIZE?= 1440k
IMAGEENDIAN= be
MAKEDEVTARGETS= floppy
ARCHDIR= ${.CURDIR}/.
IMAGE= sysinst.fs IMAGE= sysinst.fs
IMAGESIZE?= 1440k
MAKEDEVTARGETS= floppy
USE_SYSINST= yes USE_SYSINST= yes
MAKEFS_FLAGS= -f 10 MAKEFS_FLAGS= -f 10
.include "../common/Makefile.images" .include "../common/Makefile.images"
#.include <bsd.prog.mk>

View File

@ -1,14 +1,8 @@
# $NetBSD: Makefile,v 1.1.1.1 2002/04/12 21:11:46 leo Exp $ # $NetBSD: Makefile,v 1.2 2002/05/02 18:02:29 lukem Exp $
IMAGESIZE?= 1080k
IMAGEENDIAN= be
#DISKTYPE?= floppybt
MAKEDEVTARGETS= floppy
ARCHDIR= ${.CURDIR}/.
IMAGE= prepare.fs IMAGE= prepare.fs
IMAGESIZE?= 1080k
MAKEDEVTARGETS= floppy
IMAGEDEPENDS+= install.sh install.md IMAGEDEPENDS+= install.sh install.md
.include "../common/Makefile.images" .include "../common/Makefile.images"
#.include <bsd.prog.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.6 2002/04/26 15:50:26 lukem Exp $ # $NetBSD: Makefile,v 1.7 2002/05/02 18:02:29 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
@ -12,7 +12,7 @@ MDSET.netbsd.aout-INSTALL.post= \
${KERNSRCDIR}/arch/arm/conf/elf2aout.sh \ ${KERNSRCDIR}/arch/arm/conf/elf2aout.sh \
netbsd.tmp netbsd.tmp netbsd.tmp netbsd.tmp
MDSETDIR= binary/kernel MDSET_RELEASEDIR= binary/kernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.4 2002/04/26 15:50:27 lukem Exp $ # $NetBSD: Makefile,v 1.5 2002/05/02 18:02:29 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 1900k IMAGESIZE= 1900k
@ -25,14 +25,10 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -0,0 +1,20 @@
# $NetBSD: Makefile.distrib,v 1.1 2002/05/02 18:02:30 lukem Exp $
#
# Makefile snippet to setup various make variables variables used in distrib/:
# variables:
# DISTRIBDIR Top level of distrib
# DISTRIBREV NetBSD version without dots, as in "15ZD"
# DISTRIBVER NetBSD version with dots, as in "1.5ZD"
#
# commands:
# MAKESUMS runs sets/makesums with the appropriate environment
# RELEASE_INSTALL installs release binaries
#
#
DISTRIBDIR= ${NETBSDSRCDIR}/distrib
DISTRIBREV!= sh ${NETBSDSRCDIR}/sys/conf/osrelease.sh -s
DISTRIBVER!= sh ${NETBSDSRCDIR}/sys/conf/osrelease.sh
MAKESUMS= CKSUM=${CKSUM:Q} sh ${DISTRIBDIR}/sets/makesums
RELEASE_INSTALL=${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.image,v 1.10 2002/05/02 13:05:49 lukem Exp $ # $NetBSD: Makefile.image,v 1.11 2002/05/02 18:02:30 lukem Exp $
# #
# Makefile snippet to build a tree from the provided lists, # Makefile snippet to build a tree from the provided lists,
# and make an ffs file system image from that tree # and make an ffs file system image from that tree
@ -16,12 +16,17 @@
# #
# Optional variables: # Optional variables:
# IMAGE name of target image # IMAGE name of target image
# IMAGEPOSTBUILD operation to run on ${IMAGE} ${.TARGET} after its built
# (if this returns non zero, ${.TARGET} is removed)
# DESTDIR destination directory # DESTDIR destination directory
# MAKEFS_FLAGS extra options to ${MAKEFS} # MAKEFS_FLAGS extra options to ${MAKEFS}
# PARSELISTENV environment variables to set for parselist.awk # PARSELISTENV environment variables to set for parselist.awk
# WORKDIR directory to build image in to # WORKDIR directory to build image in to
# IMAGETAR tar.gz file to create containing ${IMAGE}'s contents # IMAGETAR tar.gz file to create containing ${IMAGE}'s contents
# #
# IMAGE_RELEASEDIR where to install ${IMAGE}.gz
# IMAGETAR_RELEASEDIR where to install ${IMAGETAR}
#
WORKDIR?= work WORKDIR?= work
WORKSPEC?= work.spec WORKSPEC?= work.spec
@ -60,21 +65,41 @@ ${IMAGE}: ${WORKBUILT} ${WORKSPEC} ${IMAGEDEPENDS}
-o optimization=space,minfree=0,nsectors=1,ntracks=128 \ -o optimization=space,minfree=0,nsectors=1,ntracks=128 \
${MAKEFS_FLAGS} ${.TARGET}.tmp ${WORKDIR} \ ${MAKEFS_FLAGS} ${.TARGET}.tmp ${WORKDIR} \
&& mv -f ${.TARGET}.tmp ${.TARGET} && mv -f ${.TARGET}.tmp ${.TARGET}
.if defined(IMAGEPOSTBUILD)
${IMAGEPOSTBUILD} || { rm -f ${.TARGET} ; false; }
.endif
CLEANFILES+= ${IMAGE} ${IMAGE}.tmp ${IMAGE}.gz: ${IMAGE}
.endif # } gzip -9f ${IMAGE}
realall: ${IMAGE}
.if defined(IMAGE_RELEASEDIR)
release: check_RELEASEDIR .WAIT ${IMAGE}.gz
${RELEASE_INSTALL} ${IMAGE}.gz ${RELEASEDIR}/${IMAGE_RELEASEDIR}
.endif
CLEANFILES+= ${IMAGE} ${IMAGE}.gz ${IMAGE}.tmp
.endif # IMAGE # }
.if defined(IMAGETAR) # { .if defined(IMAGETAR) # {
${IMAGETAR}: ${WORKBUILT} ${WORKSPEC} ${IMAGEDEPENDS} ${IMAGETAR}: ${WORKBUILT} ${WORKSPEC} ${IMAGEDEPENDS}
( cd ${WORKDIR}; \ ( cd ${WORKDIR}; \
GZIP=-9 ${PAX} -N ${NETBSDSRCDIR}/etc -wdzM < ${.OBJDIR}/${WORKSPEC} \ GZIP=-9 ${PAX} -N ${NETBSDSRCDIR}/etc -wdzM < ${.OBJDIR}/${WORKSPEC} \
) > ${.TARGET}.tmp \ ) > ${.TARGET}.tmp \
&& mv ${.TARGET}.tmp ${.TARGET} && mv ${.TARGET}.tmp ${.TARGET}
realall: ${IMAGETAR}
CLEANFILES+= ${IMAGETAR} ${IMAGETAR}.tmp CLEANFILES+= ${IMAGETAR} ${IMAGETAR}.tmp
.endif # }
.if defined(IMAGETAR_RELEASEDIR)
release: check_RELEASEDIR .WAIT ${IMAGE}.gz
${RELEASE_INSTALL} ${IMAGE}.gz ${RELEASEDIR}/${IMAGETAR_RELEASEDIR}
.endif
.endif # IMAGETAR # }
clean cleandir distclean: cleanfsimage clean cleandir distclean: cleanfsimage

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.mdset,v 1.10 2002/04/26 15:50:27 lukem Exp $ # $NetBSD: Makefile.mdset,v 1.11 2002/05/02 18:02:31 lukem Exp $
# #
# Makefile snippet to ${MDSETIMAGE} file system images into kernels # Makefile snippet to ${MDSETIMAGE} file system images into kernels
# #
@ -19,7 +19,7 @@
# the target name. # the target name.
# #
# Optional variables: # Optional variables:
# MDSETDIR Where to install release kernels. # MDSET_RELEASEDIR Where to install release kernels.
# #
# MDSET.${FILENAME}.post For each kernel named ${FILENAME}, # MDSET.${FILENAME}.post For each kernel named ${FILENAME},
# execute this after ${NM} / ${STRIP}. # execute this after ${NM} / ${STRIP}.
@ -89,8 +89,8 @@ CLEANFILES+= netbsd.tmp netbsd.tmp.gz ${KERNELS} ${KERNELSYMS}
realall: ${KERNELDEPS} realall: ${KERNELDEPS}
.if defined(MDSETDIR) .if defined(MDSET_RELEASEDIR)
release: check_RELEASEDIR .WAIT ${KERNELDEPS} release: check_RELEASEDIR .WAIT ${KERNELDEPS}
-mkdir -p ${RELEASEDIR}/${MDSETDIR} ${RELEASE_INSTALL} ${KERNELS} ${KERNELSYMS} \
${RELINSTALL} ${KERNELS} ${KERNELSYMS} ${RELEASEDIR}/${MDSETDIR} ${RELEASEDIR}/${MDSET_RELEASEDIR}
.endif .endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.tarfloppy,v 1.3 2002/04/26 15:50:28 lukem Exp $ # $NetBSD: Makefile.tarfloppy,v 1.4 2002/05/02 18:02:31 lukem Exp $
# #
# Makefile snippet to create a set of ustar floppies. # Makefile snippet to create a set of ustar floppies.
# Each floppy has an 8KB header, followed by part or all of the ustar archive. # Each floppy has an 8KB header, followed by part or all of the ustar archive.
@ -19,13 +19,14 @@
# FLOPPY_BOOT Bootstrap to use as "boot". # FLOPPY_BOOT Bootstrap to use as "boot".
# FLOPPY_BOOT_STRIP If yes, strip "boot" before use. # FLOPPY_BOOT_STRIP If yes, strip "boot" before use.
# FLOPPY_NETBSD Kernel to to use as "netbsd". # FLOPPY_NETBSD Kernel to to use as "netbsd".
# # FLOPPYINSTBOOT Installboot program to use.
# FLOPPYMAX Maximum number of floppies to build. # USTAR image file is in @IMAGE@.
# If 1, final image is installed as ${FLOPPYBASE}.fs # FLOPPYMAX Maximum number of floppies to build.
# FLOPPYMETAFILE Ustar metafile (optional) # If 1, the final image is installed as
# FLOPPYINSTBOOT Installboot program to use. ustar file is in @IMAGE@. # ${FLOPPYBASE}.fs instead of ${FLOPPYBASE}1.fs
# FLOPPYPAD If defined, pad the last floppy to ${FLOPPYSIZE} # FLOPPYMETAFILE USTAR metafile(s) (optional)
# FLOPPYINSTDIR Where to install release images. # FLOPPYPAD If defined, pad the last floppy to ${FLOPPYSIZE}
# FLOPPY_RELEASEDIR Where to install release floppies.
# #
@ -71,14 +72,13 @@ CLEANFILES+= ${FLOPPYBASE}?.fs
realall: ${FLOPPYBASE}1.fs realall: ${FLOPPYBASE}1.fs
.if defined(FLOPPYINSTDIR) .if defined(FLOPPY_RELEASEDIR)
release: check_RELEASEDIR .WAIT ${FLOPPYBASE}1.fs release: check_RELEASEDIR .WAIT ${FLOPPYBASE}1.fs
-mkdir -p ${RELEASEDIR}/${FLOPPYINSTDIR}
if [ -e ${FLOPPYBASE}2.fs ]; then \ if [ -e ${FLOPPYBASE}2.fs ]; then \
${RELINSTALL} ${FLOPPYBASE}?.fs \ ${RELEASE_INSTALL} ${FLOPPYBASE}?.fs \
${RELEASEDIR}/${FLOPPYINSTDIR}; \ ${RELEASEDIR}/${FLOPPY_RELEASEDIR}; \
else \ else \
${RELINSTALL} ${FLOPPYBASE}1.fs \ ${RELEASE_INSTALL} ${FLOPPYBASE}1.fs \
${RELEASEDIR}/${FLOPPYINSTDIR}/${FLOPPYBASE}.fs; \ ${RELEASEDIR}/${FLOPPY_RELEASEDIR}/${FLOPPYBASE}.fs; \
fi fi
.endif .endif

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.6 2002/04/26 15:50:28 lukem Exp $ # $NetBSD: Makefile,v 1.7 2002/05/02 18:02:31 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
SUBDIR= gzboot instkernel SUBDIR= gzboot instkernel
TARGETS+= release TARGETS+= release

View File

@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.5 2002/04/26 15:50:28 lukem Exp $ # $NetBSD: Makefile,v 1.6 2002/05/02 18:02:32 lukem Exp $
NOMAN= # defined NOMAN= # defined
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>

View File

@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.5 2002/04/26 15:50:29 lukem Exp $ # $NetBSD: Makefile,v 1.6 2002/05/02 18:02:32 lukem Exp $
NOMAN= # defined NOMAN= # defined
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>

View File

@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.2 2002/04/26 15:50:29 lukem Exp $ # $NetBSD: Makefile,v 1.3 2002/05/02 18:02:32 lukem Exp $
NOMAN= # defined NOMAN= # defined
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.6 2002/04/26 15:50:30 lukem Exp $ # $NetBSD: Makefile,v 1.7 2002/05/02 18:02:33 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
@ -36,15 +36,11 @@ CLEANFILES+= netbsd.tmp netbsd.tmp.gz gzboot.sym \
gzboot.bin gzboot.bin.gz ${GZIMGS} gzboot.bin gzboot.bin.gz ${GZIMGS}
# do the work
#
realall: ${GZIMGS} realall: ${GZIMGS}
ITARGET= ${RELEASEDIR}/binary/gzimg release: check_RELEASEDIR .WAIT ${GZIMGS}
release: check_RELEASEDIR
.for img in ${GZIMGS} .for img in ${GZIMGS}
${RELINSTALL} ${img} ${ITARGET}/. ${RELEASE_INSTALL} ${img} ${RELEASEDIR}/binary/gzimg
.endfor .endfor
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.2 2002/04/13 16:40:33 thorpej Exp $ # $NetBSD: Makefile,v 1.3 2002/05/02 18:02:33 lukem Exp $
SUBDIR= ramdisk .WAIT instkernel SUBDIR= ramdisk .WAIT instkernel
TARGETS+= release TARGETS+= release
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.4 2002/04/26 15:50:30 lukem Exp $ # $NetBSD: Makefile,v 1.5 2002/05/02 18:02:33 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
@ -13,7 +13,7 @@ MDSET.-.post= ${OBJCOPY} -O srec netbsd.tmp netbsd.srec && \
${OBJCOPY} -O binary netbsd.tmp netbsd.bin && \ ${OBJCOPY} -O binary netbsd.tmp netbsd.bin && \
gzip -9f netbsd.bin gzip -9f netbsd.bin
MDSETDIR= installation/instkernel MDSET_RELEASEDIR= installation/instkernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.2 2002/04/26 15:50:30 lukem Exp $ # $NetBSD: Makefile,v 1.3 2002/05/02 18:02:33 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 3072k IMAGESIZE= 3072k
@ -27,13 +27,10 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,13 +1,12 @@
# $NetBSD: Makefile,v 1.12 2002/04/26 15:50:30 lukem Exp $ # $NetBSD: Makefile,v 1.13 2002/05/02 18:02:34 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
SUBDIR= ramdisk .WAIT instkernel SUBDIR= ramdisk .WAIT instkernel
TARGETS+= release TARGETS+= release
release: check_RELEASEDIR release: check_RELEASEDIR .WAIT HP-IB.geometry
${RELINSTALL} HP-IB.geometry ${RELEASEDIR}/installation/misc ${RELEASE_INSTALL} HP-IB.geometry ${RELEASEDIR}/installation/misc
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,13 +1,13 @@
# $NetBSD: Makefile,v 1.9 2002/04/26 15:50:30 lukem Exp $ # $NetBSD: Makefile,v 1.10 2002/05/02 18:02:34 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= RAMDISK ${RAMDISK} - MDSETTARGETS= RAMDISK ${RAMDISK} -
MDSETDIR= binary/kernel MDSET_RELEASEDIR= binary/kernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.19 2002/04/26 15:50:31 lukem Exp $ # $NetBSD: Makefile,v 1.20 2002/05/02 18:02:35 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 1440k IMAGESIZE= 1440k
@ -27,13 +27,10 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.18 2002/04/26 15:50:32 lukem Exp $ # $NetBSD: Makefile,v 1.19 2002/05/02 18:02:35 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
@ -10,24 +10,23 @@ MINIROOT= ${MINIROOTOBJ}/miniroot.fs
MDSETTARGETS= RAMDISK ${MINIROOT} netbsd \ MDSETTARGETS= RAMDISK ${MINIROOT} netbsd \
INSTALL_TX3912 ${MINIROOT} netbsd.TX3912 INSTALL_TX3912 ${MINIROOT} netbsd.TX3912
ITARGET= ${RELEASEDIR}/installation MDSET_RELEASEDIR= installation
PBSDBOOTDIR= ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot PBSDBOOTDIR= ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot
PBSDBOOT= ${PBSDBOOTDIR}/pbsdboot.uu PBSDBOOT= ${PBSDBOOTDIR}/pbsdboot.uu
PBSDBOOT1= ${PBSDBOOTDIR}/pbsdboot1.uu PBSDBOOT1= ${PBSDBOOTDIR}/pbsdboot1.uu
HPCBOOTDIR= ${KERNSRCDIR}/arch/hpc/stand HPCBOOTDIR= ${KERNSRCDIR}/arch/hpc/stand
HPCBOOT= ${HPCBOOTDIR}/binary/MIPS/hpcboot.exe.uu HPCBOOT= ${HPCBOOTDIR}/binary/MIPS/hpcboot.exe.uu
release: check_RELEASEDIR .WAIT ${KERNELDEPS} release: check_RELEASEDIR .WAIT ${PBSDBOOT1} ${PBSDBOOT} ${HPCBOOT}
-mkdir -p ${ITARGET} (cd ${RELEASEDIR}/installation; ${UUDECODE} ${PBSDBOOT1}; \
${RELINSTALL} ${KERNELS} ${KERNELSYMS} ${ITARGET}
(cd ${ITARGET}; ${UUDECODE} ${PBSDBOOT1}; \
chmod ${NONBINMODE} pbsdboot1.exe) chmod ${NONBINMODE} pbsdboot1.exe)
(cd ${ITARGET}; ${UUDECODE} ${PBSDBOOT}; \ (cd ${RELEASEDIR}/installation; ${UUDECODE} ${PBSDBOOT}; \
chmod ${NONBINMODE} pbsdboot.exe) chmod ${NONBINMODE} pbsdboot.exe)
(cd ${ITARGET}; rm -f hpcboot.exe; \ (cd ${RELEASEDIR}/installation; rm -f hpcboot.exe; \
${UUDECODE} -p ${HPCBOOT} >hpcboot.exe ; \ ${UUDECODE} -p ${HPCBOOT} >hpcboot.exe ; \
chmod ${NONBINMODE} hpcboot.exe) chmod ${NONBINMODE} hpcboot.exe)
${MAKESUMS} -t ${ITARGET} '*.gz' '*.exe' ${MAKESUMS} -t ${RELEASEDIR}/installation '*.gz' '*.exe'
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.1 2000/04/07 17:44:19 thorpej Exp $ # $NetBSD: Makefile,v 1.2 2002/05/02 18:02:35 lukem Exp $
SUBDIR= floppies SUBDIR= floppies
TARGETS+= release
TARGETS+=release
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.bootfloppy,v 1.9 2002/04/26 15:50:32 lukem Exp $ # $NetBSD: Makefile.bootfloppy,v 1.10 2002/05/02 18:02:36 lukem Exp $
# #
# Makefile snippet to create a set of USTAR floppies # Makefile snippet to create a set of USTAR floppies
# #
@ -15,7 +15,7 @@
# #
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
FLOPPYSIZE?= 2880 FLOPPYSIZE?= 2880
MDEC= ${DESTDIR}/usr/mdec MDEC= ${DESTDIR}/usr/mdec
@ -28,7 +28,7 @@ FLOPPY_BOOT_STRIP= yes
FLOPPY_NETBSD= ${FLOPPYKERNOBJ}/${FLOPPYKERNEL} FLOPPY_NETBSD= ${FLOPPYKERNOBJ}/${FLOPPYKERNEL}
FLOPPYFILES= boot ${FLOPPYMETAFILE} netbsd FLOPPYFILES= boot ${FLOPPYMETAFILE} netbsd
FLOPPYINSTDIR= installation/floppy FLOPPY_RELEASEDIR= installation/floppy
.include "${DISTRIBDIR}/common/Makefile.tarfloppy" .include "${DISTRIBDIR}/common/Makefile.tarfloppy"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile.ramdisk,v 1.18 2002/04/26 15:50:32 lukem Exp $ # $NetBSD: Makefile.ramdisk,v 1.19 2002/05/02 18:02:36 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
I386COMMON= ${.CURDIR}/../common I386COMMON= ${.CURDIR}/../common
@ -33,13 +33,10 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.20 2002/04/26 15:50:32 lukem Exp $ # $NetBSD: Makefile,v 1.21 2002/05/02 18:02:37 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
# create ${RAMDISK_*} variables # create ${RAMDISK_*} variables
# #
@ -20,7 +20,7 @@ MDSETTARGETS= INSTALL ${RAMDISK_B} - \
INSTALL_TINY ${RAMDISK_T} - \ INSTALL_TINY ${RAMDISK_T} - \
INSTALL_PS2 ${RAMDISK_S} - INSTALL_PS2 ${RAMDISK_S} -
MDSETDIR= binary/kernel MDSET_RELEASEDIR= binary/kernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.16 2002/04/26 15:50:33 lukem Exp $ # $NetBSD: Makefile,v 1.17 2002/05/02 18:02:37 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
# create ${RAMDISK_*} variables # create ${RAMDISK_*} variables
# #
@ -16,7 +16,7 @@ ${V}= ${${V}DIR}/${F}.fs
MDSETTARGETS= INSTALL_SMALL ${RAMDISK_S} netbsd.RESCUE_SMALL \ MDSETTARGETS= INSTALL_SMALL ${RAMDISK_S} netbsd.RESCUE_SMALL \
INSTALL_TINY ${RAMDISK_T} netbsd.RESCUE_TINY INSTALL_TINY ${RAMDISK_T} netbsd.RESCUE_TINY
MDSETDIR= binary/kernel MDSET_RELEASEDIR= binary/kernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.6 2002/04/10 01:31:50 lukem Exp $ # $NetBSD: Makefile,v 1.7 2002/05/02 18:02:38 lukem Exp $
SUBDIR= instkernel SUBDIR= instkernel
TARGETS+= release TARGETS+= release
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.5 2002/04/11 15:45:37 lukem Exp $ # $NetBSD: Makefile,v 1.6 2002/05/02 18:02:38 lukem Exp $
SUBDIR= ramdisk .WAIT instkernel SUBDIR= ramdisk .WAIT instkernel
TARGETS+= release
TARGETS+=release
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,14 +1,14 @@
# $NetBSD: Makefile,v 1.14 2002/04/26 15:50:33 lukem Exp $ # $NetBSD: Makefile,v 1.15 2002/05/02 18:02:39 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= INSTALL ${RAMDISK} netbsd-INSTALL \ MDSETTARGETS= INSTALL ${RAMDISK} netbsd-INSTALL \
INSTALLSBC ${RAMDISK} netbsd-INSTALLSBC INSTALLSBC ${RAMDISK} netbsd-INSTALLSBC
MDSETDIR= installation/instkernel MDSET_RELEASEDIR= installation/instkernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.25 2002/04/26 15:50:34 lukem Exp $ # $NetBSD: Makefile,v 1.26 2002/05/02 18:02:39 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 2048k IMAGESIZE= 2048k
@ -33,13 +33,10 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,18 +1,17 @@
# $NetBSD: Makefile,v 1.12 2002/04/26 15:50:34 lukem Exp $ # $NetBSD: Makefile,v 1.13 2002/05/02 18:02:39 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
SUBDIR= floppies SUBDIR= floppies
TARGETS+=release TARGETS+= release
BOOTOBJ!= cd ${KERNSRCDIR}/arch/macppc/stand/ofwboot && ${PRINTOBJDIR} BOOTOBJ!= cd ${KERNSRCDIR}/arch/macppc/stand/ofwboot && ${PRINTOBJDIR}
ITARGET= ${RELEASEDIR}/installation OFWBOOTERS= ${BOOTOBJ}/ofwboot.elf ${BOOTOBJ}/ofwboot.xcf
release: check_RELEASEDIR release: check_RELEASEDIR .WAIT ${OWFBOOTERS}
-mkdir -p ${ITARGET} ${RELEASE_INSTALL} ${OFWBOOTERS} ${RELEASEDIR}/installation
${RELINSTALL} ${BOOTOBJ}/ofwboot.elf ${BOOTOBJ}/ofwboot.xcf ${ITARGET}
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,13 +1,14 @@
# $NetBSD: Makefile,v 1.22 2002/04/26 15:50:34 lukem Exp $ # $NetBSD: Makefile,v 1.23 2002/05/02 18:02:40 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
FLOPPYBASE= boot FLOPPYBASE= boot
FLOPPYSIZE= 2880 FLOPPYSIZE= 2880
FLOPPYFILES= boot netbsd FLOPPYFILES= boot netbsd
FLOPPYMAX= 2 FLOPPYMAX= 2
FLOPPYINSTDIR= installation/floppy
FLOPPY_RELEASEDIR= installation/floppy
MDEC= ${DESTDIR}/usr/mdec MDEC= ${DESTDIR}/usr/mdec
KERNOBJ!= cd ${.CURDIR}/../md-kernel && ${PRINTOBJDIR} KERNOBJ!= cd ${.CURDIR}/../md-kernel && ${PRINTOBJDIR}

View File

@ -1,14 +1,14 @@
# $NetBSD: Makefile,v 1.9 2002/04/26 15:50:35 lukem Exp $ # $NetBSD: Makefile,v 1.10 2002/05/02 18:02:40 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= INSTALL ${RAMDISK} - \ MDSETTARGETS= INSTALL ${RAMDISK} - \
GENERIC_MD ${RAMDISK} - GENERIC_MD ${RAMDISK} -
MDSETDIR= binary/kernel MDSET_RELEASEDIR= binary/kernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.28 2002/04/26 15:50:35 lukem Exp $ # $NetBSD: Makefile,v 1.29 2002/05/02 18:02:41 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 2048k IMAGESIZE= 2048k
@ -28,13 +28,10 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.59 2002/04/26 15:50:37 lukem Exp $ # $NetBSD: Makefile,v 1.60 2002/05/02 18:02:41 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
@ -22,28 +22,17 @@ PARSELISTENV= ARCHDIR=${ARCHDIR:Q} \
DISTRIBVER=${DISTRIBVER:Q} \ DISTRIBVER=${DISTRIBVER:Q} \
KERNOBJDIR=${KERNOBJDIR:Q} KERNOBJDIR=${KERNOBJDIR:Q}
IMAGE_RELEASEDIR= installation/miniroot
.include "${ARCHDIR}/Makefile.inc" .include "${ARCHDIR}/Makefile.inc"
IMAGEBUILT= image.built
CLEANFILES+= ${IMAGEBUILT}
IMAGE_MD_POST?= true
realall: check_DESTDIR .WAIT ${IMAGEBUILT}
release: check_RELEASEDIR .WAIT ${IMAGEBUILT}
mkdir -p ${RELEASEDIR}/installation/miniroot
gzip -c -9 < ${.OBJDIR}/miniroot.fs \
> ${RELEASEDIR}/installation/miniroot/miniroot.fs.gz
${MAKESUMS} -t ${RELEASEDIR}/installation/miniroot miniroot.fs.gz
${IMAGEBUILT}: ${IMAGE}
${IMAGE_MD_POST} \
&& touch ${IMAGEBUILT}
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.if defined(MAKEDEVTARGETS) .if defined(MAKEDEVTARGETS)
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.endif .endif
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release: check_RELEASEDIR .WAIT
${MAKESUMS} -t ${RELEASEDIR}/${IMAGE_RELEASEDIR} ${IMAGE}.gz
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.10 2002/04/26 15:50:38 lukem Exp $ # $NetBSD: Makefile,v 1.11 2002/05/02 18:02:42 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
@ -9,41 +9,23 @@ IMAGE= diskimage
IMAGESIZE= 2m IMAGESIZE= 2m
LISTS= ${.CURDIR}/list LISTS= ${.CURDIR}/list
IMAGEENDIAN= be IMAGEENDIAN= be
IMAGEDEPENDS= install.gz ${DESTDIR}/usr/mdec/boot PRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx_ffs
IMAGEDEPENDS= install.gz ${DESTDIR}/usr/mdec/boot ${PRIMARYBOOT}
IMAGEPOSTBUILD= ${DESTDIR}/usr/mdec/installboot ${IMAGE} ${PRIMARYBOOT} # XXXDISTRIB
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= RAMDISK ${RAMDISK} install MDSETTARGETS= RAMDISK ${RAMDISK} install
MDSET_RELEASEDIR= binary/kernel
IMAGE_RELEASEDIR= installation/diskimage
.if defined(ECOFF_KERNEL) .if defined(ECOFF_KERNEL)
MDSET.install.suffixes= ecoff MDSET.install.suffixes= ecoff
MDSET.install.post= ${ELF2ECOFF} netbsd.tmp netbsd.ecoff && \ MDSET.install.post= ${ELF2ECOFF} netbsd.tmp netbsd.ecoff && \
gzip -9f netbsd.ecoff gzip -9f netbsd.ecoff
.endif # ECOFF_KERNEL .endif # ECOFF_KERNEL
PRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx_ffs
${IMAGE}.gz: ${IMAGE} ${PRIMARYBOOT}
# XXX ${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT}
# XXXDISTRIB
${DESTDIR}/usr/mdec/installboot ${IMAGE} ${PRIMARYBOOT}
gzip -9f ${IMAGE}
CLEANFILES+= ${IMAGE}.gz
realall: ${KERNELDEPS} ${IMAGE}.gz
DISKBINDIR= ${RELEASEDIR}/installation/diskimage
KERNBINDIR= ${RELEASEDIR}/binary/kernel
release: check_RELEASEDIR .WAIT ${IMAGE}.gz ${KERNELDEPS}
-mkdir -p ${DISKBINDIR} ${KERNBINDIR}
${RELINSTALL} ${IMAGE}.gz ${DISKBINDIR}
${RELINSTALL} ${KERNELS} ${KERNBINDIR}
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.12 2002/05/02 14:16:02 simonb Exp $ # $NetBSD: Makefile,v 1.13 2002/05/02 18:02:42 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGETAR= diskimage.tgz IMAGETAR= diskimage.tgz
@ -25,19 +25,13 @@ IMAGEDEPENDS= ${CRUNCHBIN} \
${NETBSDSRCDIR}/etc/netconfig ${NETBSDSRCDIR}/etc/protocols \ ${NETBSDSRCDIR}/etc/netconfig ${NETBSDSRCDIR}/etc/protocols \
${NETBSDSRCDIR}/etc/services ${NETBSDSRCDIR}/etc/services
IMAGETAR_RELEASEDIR= installation/netboot
# Use stubs to eliminate some large stuff from libc # Use stubs to eliminate some large stuff from libc
HACKSRC= ${DISTRIBDIR}/utils/libhack HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE} .WAIT ${IMAGETAR}
release: check_RELEASEDIR .WAIT ${IMAGETAR}
-mkdir -p ${RELEASEDIR}/installation/netboot
${RELINSTALL} ${IMAGETAR} ${RELEASEDIR}/installation/netboot
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"

View File

@ -1,13 +1,13 @@
# $NetBSD: Makefile,v 1.6 2002/04/26 15:50:39 lukem Exp $ # $NetBSD: Makefile,v 1.7 2002/05/02 18:02:42 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= RAMDISK ${RAMDISK} - MDSETTARGETS= RAMDISK ${RAMDISK} -
MDSETDIR= installation/tapeimage MDSET_RELEASEDIR= installation/tapeimage
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.22 2002/04/26 15:50:40 lukem Exp $ # $NetBSD: Makefile,v 1.23 2002/05/02 18:02:43 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 800k IMAGESIZE= 800k
@ -27,13 +27,10 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.2 2000/06/11 11:35:18 tsutsui Exp $ # $NetBSD: Makefile,v 1.3 2002/05/02 18:02:43 lukem Exp $
SUBDIR= floppies
SUBDIR= floppies
TARGETS+= release TARGETS+= release
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2002/04/26 15:04:47 lukem Exp $ # $NetBSD: Makefile,v 1.12 2002/05/02 18:02:44 lukem Exp $
.include "${.CURDIR}/../../../Makefile.inc" .include "${.CURDIR}/../../../Makefile.inc"
@ -54,9 +54,8 @@ unconfig:
-umount -f ${MOUNT_POINT} -umount -f ${MOUNT_POINT}
-vnconfig -u ${VND} -vnconfig -u ${VND}
release: check_RELEASEDIR release: check_RELEASEDIR .WAIT ${IMAGE}
-mkdir -p ${RELEASEDIR}/installation/floppy ${RELEASE_INSTALL} ${IMAGE} ${RELEASEDIR}/installation/floppy
${RELINSTALL} ${IMAGE} ${RELEASEDIR}/installation/floppy
# XXX: do we want both? # XXX: do we want both?
gzip -c -9 ${IMAGE} > ${RELEASEDIR}/installation/floppy/${IMAGE}.gz gzip -c -9 ${IMAGE} > ${RELEASEDIR}/installation/floppy/${IMAGE}.gz

View File

@ -1,13 +1,13 @@
# $NetBSD: Makefile,v 1.10 2002/04/26 15:50:41 lukem Exp $ # $NetBSD: Makefile,v 1.11 2002/05/02 18:02:44 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= INSTALL ${RAMDISK} - MDSETTARGETS= INSTALL ${RAMDISK} -
MDSETDIR= binary/kernel MDSET_RELEASEDIR= binary/kernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.26 2002/04/26 15:50:40 lukem Exp $ # $NetBSD: Makefile,v 1.27 2002/05/02 18:02:44 lukem Exp $
.include "${.CURDIR}/../../../Makefile.inc" .include "${.CURDIR}/../../../Makefile.inc"
.include <bsd.own.mk> .include <bsd.own.mk>
@ -27,13 +27,10 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.2 2002/02/21 15:07:36 tsutsui Exp $ # $NetBSD: Makefile,v 1.3 2002/05/02 18:02:45 lukem Exp $
SUBDIR= floppies
SUBDIR= floppies
TARGETS+= release TARGETS+= release
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,13 +1,14 @@
# $NetBSD: Makefile,v 1.9 2002/04/26 15:50:41 lukem Exp $ # $NetBSD: Makefile,v 1.10 2002/05/02 18:02:45 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
FLOPPYBASE= boot FLOPPYBASE= boot
FLOPPYSIZE= 2880 FLOPPYSIZE= 2880
FLOPPYFILES= boot netbsd FLOPPYFILES= boot netbsd
FLOPPYMAX= 2 FLOPPYMAX= 2
FLOPPYINSTDIR= installation/floppy
FLOPPY_RELEASEDIR= installation/floppy
MDEC= ${DESTDIR}/usr/mdec MDEC= ${DESTDIR}/usr/mdec
KERNOBJ!= cd ${.CURDIR}/../instkernel && ${PRINTOBJDIR} KERNOBJ!= cd ${.CURDIR}/../instkernel && ${PRINTOBJDIR}

View File

@ -1,13 +1,13 @@
# $NetBSD: Makefile,v 1.2 2002/04/26 15:50:42 lukem Exp $ # $NetBSD: Makefile,v 1.3 2002/05/02 18:02:45 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= INSTALL ${RAMDISK} - MDSETTARGETS= INSTALL ${RAMDISK} -
MDSETDIR= binary/kernel MDSET_RELEASEDIR= binary/kernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.23 2002/04/26 15:50:42 lukem Exp $ # $NetBSD: Makefile,v 1.24 2002/05/02 18:02:46 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 2560k IMAGESIZE= 2560k
@ -28,13 +28,10 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.22 2002/04/02 12:35:43 skrll Exp $ # $NetBSD: Makefile,v 1.23 2002/05/02 18:02:46 lukem Exp $
# #
TARGETS+= release TARGETS+= release
.ifndef ALLNOTES .ifndef ALLNOTES
.if exists(${MACHINE}/Makefile) .if exists(${MACHINE}/Makefile)

View File

@ -1,10 +1,10 @@
# $NetBSD: Makefile.inc,v 1.25 2002/04/26 15:50:42 lukem Exp $ # $NetBSD: Makefile.inc,v 1.26 2002/05/02 18:02:47 lukem Exp $
# #
# Ross Harvey <ross@netbsd.org> # Ross Harvey <ross@netbsd.org>
.include <bsd.own.mk> # So we get /etc/mk.conf vars. .include <bsd.own.mk> # So we get /etc/mk.conf vars.
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
# Whether or not to regenerate tables of contents # Whether or not to regenerate tables of contents
MKTOCS?=yes MKTOCS?=yes
@ -92,8 +92,8 @@ echosrcs! ${SRCS}
echomore! echomore!
@echo ${.OBJDIR}/${TARG}.more @echo ${.OBJDIR}/${TARG}.more
release: check_RELEASEDIR release: check_RELEASEDIR .WAIT ${TARGS}
${RELINSTALL} ${TARGS} ${RELEASEDIR}/. ${RELEASE_INSTALL} ${TARGS} ${RELEASEDIR}/.
.PATH: ${.CURDIR}/../common .PATH: ${.CURDIR}/../common

View File

@ -1,13 +1,13 @@
# $NetBSD: Makefile,v 1.10 2002/04/26 15:50:43 lukem Exp $ # $NetBSD: Makefile,v 1.11 2002/05/02 18:02:47 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
MINIROOTDIR!= cd ${.CURDIR}/../miniroot && ${PRINTOBJDIR} MINIROOTDIR!= cd ${.CURDIR}/../miniroot && ${PRINTOBJDIR}
MINIROOT= ${MINIROOTDIR}/miniroot.fs MINIROOT= ${MINIROOTDIR}/miniroot.fs
MDSETTARGETS= RAMDISK ${MINIROOT} netbsd MDSETTARGETS= RAMDISK ${MINIROOT} netbsd
MDSETDIR= installation MDSET_RELEASEDIR= installation
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.29 2002/05/02 13:26:38 simonb Exp $ # $NetBSD: Makefile,v 1.30 2002/05/02 18:02:48 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
@ -9,37 +9,21 @@ IMAGE= diskimage
IMAGESIZE= 2m IMAGESIZE= 2m
LISTS= ${.CURDIR}/list LISTS= ${.CURDIR}/list
IMAGEENDIAN= le IMAGEENDIAN= le
IMAGEDEPENDS= install.gz ${DESTDIR}/usr/mdec/boot.pmax PRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx_ffs
IMAGEDEPENDS= install.gz ${DESTDIR}/usr/mdec/boot.pmax ${PRIMARYBOOT}
IMAGEPOSTBUILD= ${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT}
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= RAMDISK ${RAMDISK} install MDSETTARGETS= RAMDISK ${RAMDISK} install
MDSET_RELEASEDIR= binary/kernel
IMAGE_RELEASEDIR= installation/diskimage
MDSET.install.suffixes= ecoff MDSET.install.suffixes= ecoff
MDSET.install.post= ${ELF2ECOFF} netbsd.tmp netbsd.ecoff && \ MDSET.install.post= ${ELF2ECOFF} netbsd.tmp netbsd.ecoff && \
gzip -9f netbsd.ecoff gzip -9f netbsd.ecoff
PRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx_ffs
${IMAGE}.gz: ${IMAGE} ${PRIMARYBOOT}
${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT}
gzip -9f ${IMAGE}
CLEANFILES+= ${IMAGE}.gz
realall: ${KERNELDEPS} ${IMAGE}.gz
DISKBINDIR= ${RELEASEDIR}/installation/diskimage
KERNBINDIR= ${RELEASEDIR}/binary/kernel
release: check_RELEASEDIR .WAIT ${IMAGE}.gz ${KERNELDEPS}
-mkdir -p ${DISKBINDIR} ${KERNBINDIR}
${RELINSTALL} ${IMAGE}.gz ${DISKBINDIR}
${RELINSTALL} ${KERNELS} ${KERNBINDIR}
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.10 2002/04/23 19:53:12 tv Exp $ # $NetBSD: Makefile.inc,v 1.11 2002/05/02 18:02:48 lukem Exp $
DBG= -Os -Wa,-xgot # XXX -xgot workaround for objcopy-crunchide DBG= -Os -Wa,-xgot # XXX -xgot workaround for objcopy-crunchide
@ -15,4 +15,4 @@ IMAGEDEPENDS+= ${ARCHDIR}/dot.profile ${ARCHDIR}/termcap.rcons \
${KERNOBJDIR}/GENERIC/netbsd.ecoff \ ${KERNOBJDIR}/GENERIC/netbsd.ecoff \
${KERNOBJDIR}/INSTALL/nfsnetbsd.ecoff ${KERNOBJDIR}/INSTALL/nfsnetbsd.ecoff
IMAGE_MD_POST= ${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${DESTDIR}/usr/mdec/bootxx_ffs IMAGEPOSTBUILD= ${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${DESTDIR}/usr/mdec/bootxx_ffs

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.29 2002/05/02 13:31:43 simonb Exp $ # $NetBSD: Makefile,v 1.30 2002/05/02 18:02:48 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGETAR= diskimage.tgz IMAGETAR= diskimage.tgz
@ -25,19 +25,13 @@ IMAGEDEPENDS= ${CRUNCHBIN} \
${NETBSDSRCDIR}/etc/netconfig ${NETBSDSRCDIR}/etc/protocols \ ${NETBSDSRCDIR}/etc/netconfig ${NETBSDSRCDIR}/etc/protocols \
${NETBSDSRCDIR}/etc/services ${NETBSDSRCDIR}/etc/services
IMAGETAR_RELEASEDIR= installation/netboot
# Use stubs to eliminate some large stuff from libc # Use stubs to eliminate some large stuff from libc
HACKSRC= ${DISTRIBDIR}/utils/libhack HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE} .WAIT ${IMAGETAR}
release: check_RELEASEDIR .WAIT ${IMAGETAR}
-mkdir -p ${RELEASEDIR}/installation/netboot
${RELINSTALL} ${IMAGETAR} ${RELEASEDIR}/installation/netboot
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile.inc,v 1.5 2002/04/26 15:50:44 lukem Exp $ # $NetBSD: Makefile.inc,v 1.6 2002/05/02 18:02:49 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
# Required variables: # Required variables:
# IMAGE # IMAGE
@ -25,7 +25,6 @@ CLEANFILES+= ${KFILES}
realall: ${KFILES} realall: ${KFILES}
release: check_RELEASEDIR .WAIT ${KFILES} release: check_RELEASEDIR .WAIT ${KFILES}
-mkdir -p ${RELEASEDIR}/installation/floppy ${RELEASE_INSTALL} ${KFILES} ${RELEASEDIR}/installation/floppy
${RELINSTALL} ${KFILES} ${RELEASEDIR}/installation/floppy
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.3 2002/04/26 15:50:44 lukem Exp $ # $NetBSD: Makefile,v 1.4 2002/05/02 18:02:49 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
@ -18,7 +18,6 @@ ${KERNEL}: ${KERN}
realall: ${KERNEL} realall: ${KERNEL}
release: check_RELEASEDIR .WAIT ${KERNEL} release: check_RELEASEDIR .WAIT ${KERNEL}
-mkdir -p ${RELEASEDIR}/binary/kernel ${RELEASE_INSTALL} ${KERNEL} ${RELEASEDIR}/binary/kernel
${RELINSTALL} ${KERNEL} ${RELEASEDIR}/binary/kernel
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,13 +1,13 @@
# $NetBSD: Makefile,v 1.6 2002/04/26 15:50:45 lukem Exp $ # $NetBSD: Makefile,v 1.7 2002/05/02 18:02:50 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= INSTALL ${RAMDISK} - MDSETTARGETS= INSTALL ${RAMDISK} -
MDSETDIR= binary/kernel MDSET_RELEASEDIR= binary/kernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.9 2002/04/26 15:50:45 lukem Exp $ # $NetBSD: Makefile,v 1.10 2002/05/02 18:02:50 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 2048k IMAGESIZE= 2048k
@ -27,13 +27,10 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,13 +1,13 @@
# $NetBSD: Makefile,v 1.5 2002/04/26 15:50:45 lukem Exp $ # $NetBSD: Makefile,v 1.6 2002/05/02 18:02:51 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= INSTALL ${RAMDISK} - MDSETTARGETS= INSTALL ${RAMDISK} -
MDSETDIR= binary/kernel MDSET_RELEASEDIR= binary/kernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.7 2002/04/26 15:50:46 lukem Exp $ # $NetBSD: Makefile,v 1.8 2002/05/02 18:02:51 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 2048k IMAGESIZE= 2048k
@ -27,13 +27,10 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2002/04/29 05:02:57 sommerfeld Exp $ # $NetBSD: Makefile,v 1.15 2002/05/02 18:02:51 lukem Exp $
# The `all' target must appear before bsd.own.mk is pulled in. # The `all' target must appear before bsd.own.mk is pulled in.
all: all:
@ -6,7 +6,7 @@ all:
@false @false
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
SETSENV= DESTDIR=${DESTDIR:Q} \ SETSENV= DESTDIR=${DESTDIR:Q} \
MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \ MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.9 2002/04/26 15:50:46 lukem Exp $ # $NetBSD: Makefile,v 1.10 2002/05/02 18:02:52 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs
@ -11,7 +11,7 @@ MDSET.-.post= OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
${KERNSRCDIR}/arch/arm/conf/elf2aout.sh \ ${KERNSRCDIR}/arch/arm/conf/elf2aout.sh \
netbsd.tmp netbsd.tmp netbsd.tmp netbsd.tmp
MDSETDIR= binary/kernel MDSET_RELEASEDIR= binary/kernel
.include "${DISTRIBDIR}/common/Makefile.mdset" .include "${DISTRIBDIR}/common/Makefile.mdset"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.9 2002/04/26 15:50:46 lukem Exp $ # $NetBSD: Makefile,v 1.10 2002/05/02 18:02:52 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 3072k IMAGESIZE= 3072k
@ -27,13 +27,10 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.33 2002/03/11 07:11:38 lukem Exp $ # $NetBSD: Makefile,v 1.34 2002/05/02 18:02:53 lukem 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.
@ -7,13 +7,14 @@
# into the md based kernel built from the INSTALL kernel configuration file. # into the md based kernel built from the INSTALL kernel configuration file.
# #
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk>
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
MINIROOT= ${.CURDIR}/../../miniroot MINIROOT= ${.CURDIR}/../../miniroot
.include "${.CURDIR}/../../Makefile.inc"
.include <bsd.own.mk> # So we use /etc/mk.conf.
.include <bsd.kernobj.mk>
KERN?= ${KERNOBJDIR}/INSTALL/netbsd KERN?= ${KERNOBJDIR}/INSTALL/netbsd
@ -94,17 +95,9 @@ depend install:
real-floppy: real-floppy:
dd if=${IMAGE} of=${FD_RDEV} bs=32k dd if=${IMAGE} of=${FD_RDEV} bs=32k
.ifndef RELEASEDIR release: check_RELEASEDIR .WAIT boot.fs netbsd.ram.aout
release: gzip -c -9 boot.fs > $(RELEASEDIR)/installation/bootfs/boot.fs.gz
@echo setenv RELEASEDIR first gzip -c -9 netbsd.ram.aout > \
@false $(RELEASEDIR)/installation/bootfs/netbsd.ram.aout.gz
.else
release: $(IMAGE)
gzip -c -9 < $(.OBJDIR)/boot.fs \
> $(RELEASEDIR)/installation/bootfs/boot.fs.gz
gzip -c -9 < $(.OBJDIR)/netbsd.ram.aout \
> $(RELEASEDIR)/installation/bootfs/netbsd.ram.aout.gz
.endif # RELEASEDIR check
.include <bsd.obj.mk> .include <bsd.prog.mk>
.include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2002/03/11 07:11:38 lukem Exp $ # $NetBSD: Makefile,v 1.7 2002/05/02 18:02:53 lukem Exp $
# #
# instfs.tgz is the filesystem image for disk 2 of the floppy based # instfs.tgz is the filesystem image for disk 2 of the floppy based
# installation method. # installation method.
@ -6,10 +6,10 @@
# the exeption of the kernel and boot program. # the exeption of the kernel and boot program.
# #
MINIROOT= ${.CURDIR}/../../miniroot
.include "${.CURDIR}/../../Makefile.inc"
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
MINIROOT= ${.CURDIR}/../../miniroot
MOUNT_POINT?= /mnt MOUNT_POINT?= /mnt
# DEV/RDEV file system device, CDEV/RDEV vnconfig device # DEV/RDEV file system device, CDEV/RDEV vnconfig device
@ -41,14 +41,7 @@ unconfig:
clean cleandir distclean: clean cleandir distclean:
/bin/rm -f *.core ${INSTFS} /bin/rm -f *.core ${INSTFS}
.ifndef RELEASEDIR release: check_RELEASEDIR .WAIT ${INSTFS}
release: ${RELEASE_INSTALL} ${INSTFS} $(RELEASEDIR)/installation/bootfs
@echo setenv RELEASEDIR first
@false
.else
release: ${INSTFS}
cp ${INSTFS} $(RELEASEDIR)/installation/bootfs
.endif # RELEASEDIR check
.include <bsd.obj.mk> .include <bsd.prog.mk>
.include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.5 2002/04/26 03:49:21 lukem Exp $ # $NetBSD: Makefile.inc,v 1.6 2002/05/02 18:02:54 lukem Exp $
IMAGESIZE= 7296k IMAGESIZE= 7296k
MAKEFS_FLAGS= -o density=4k MAKEFS_FLAGS= -o density=4k
@ -12,6 +12,6 @@ IMAGEDEPENDS+= ${ARCHDIR}/../install.md ${ARCHDIR}/dot.profile \
${KERNOBJDIR}/GENERIC/netbsd ${KERNOBJDIR}/GENERIC/netbsd
# XXXDISTRIB: binstall needs to be MI and work on image files # XXXDISTRIB: binstall needs to be MI and work on image files
IMAGE_MD_POST= ${DESTDIR}/usr/mdec/binstall -f miniroot.fs \ IMAGEPOSTBUILD= ${DESTDIR}/usr/mdec/binstall -f ${IMAGE} \
-m ${DESTDIR}/usr/mdec -i ${SPARCINSTALLBOOT} \ -m ${DESTDIR}/usr/mdec -i ${SPARCINSTALLBOOT} \
-v ffs ${WORKDIR} -v ffs ${WORKDIR}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.37 2002/04/26 15:50:47 lukem Exp $ # $NetBSD: Makefile,v 1.38 2002/05/02 18:02:54 lukem Exp $
# #
# ramdisk.fs is the microroot filesystem intended for use with # ramdisk.fs is the microroot filesystem intended for use with
# the INSTALL kernel. It provides just enough tools to extract the # the INSTALL kernel. It provides just enough tools to extract the
@ -7,7 +7,7 @@
# #
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 1360b IMAGESIZE= 1360b
@ -28,14 +28,10 @@ HACKOBJS= gethost.o
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o ${CRUNCHBIN}: libhack.o
realall: ${IMAGE}
release:
.include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2002/03/25 01:58:57 lukem Exp $ # $NetBSD: Makefile,v 1.8 2002/05/02 18:02:55 lukem Exp $
# #
# instfs.tgz is the filesystem image for disk 2 of the floppy based # instfs.tgz is the filesystem image for disk 2 of the floppy based
# installation method. # installation method.
@ -6,11 +6,13 @@
# the exeption of the kernel and boot program. # the exeption of the kernel and boot program.
# #
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
MINIROOT= ${.CURDIR}/../xminiroot MINIROOT= ${.CURDIR}/../xminiroot
.include "${TOP}/Makefile.inc" .include "${TOP}/Makefile.inc"
.include <bsd.own.mk>
MINIROOT_DIR!= cd ${MINIROOT} && ${PRINTOBJDIR} MINIROOT_DIR!= cd ${MINIROOT} && ${PRINTOBJDIR}
MINIROOT_IMAGE= ${MINIROOT_DIR}/miniroot.fs MINIROOT_IMAGE= ${MINIROOT_DIR}/miniroot.fs
@ -28,9 +30,8 @@ ${INSTFS}: ${MINIROOT_IMAGE}
clean cleandir distclean: clean cleandir distclean:
/bin/rm -f *.core ${INSTFS} /bin/rm -f *.core ${INSTFS}
release: check_RELEASEDIR .WAIT ${INSTFS} release: check_RELEASEDIR .WAIT ${INSTFS} ${MINIROOT_KERNEL}
cp ${INSTFS} $(RELEASEDIR)/installation/misc ${RELEASE_INSTALL} ${INSTFS} $(RELEASEDIR)/installation/misc
gzip -9 -c ${MINIROOT_KERNEL} > $(RELEASEDIR)/binary/kernel/netbsd.INSTALL.gz gzip -9 -c ${MINIROOT_KERNEL} > $(RELEASEDIR)/binary/kernel/netbsd.INSTALL.gz
.include <bsd.obj.mk> .include <bsd.prog.mk>
.include <bsd.subdir.mk>

View File

@ -1,13 +1,15 @@
# $NetBSD: Makefile,v 1.15 2002/03/28 14:47:10 rafal Exp $ # $NetBSD: Makefile,v 1.16 2002/05/02 18:02:56 lukem Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk>
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
MINIROOT= ${TOP}/../miniroot MINIROOT= ${TOP}/../miniroot
.include "${TOP}/Makefile.inc" .include "${TOP}/Makefile.inc"
.include <bsd.own.mk> # So we use /etc/mk.conf.
.include <bsd.kernobj.mk>
SRCROOT= ${TOP}/../.. SRCROOT= ${TOP}/../..
WARNS=1 WARNS=1
INSTKERN?= ${KERNOBJDIR}/INSTALL/netbsd INSTKERN?= ${KERNOBJDIR}/INSTALL/netbsd
@ -103,20 +105,8 @@ clean cleandir distclean:
/bin/rm -f *.core ${AUXCLEAN} ${IMAGE} netbsd.INSTALL ${CBIN} \ /bin/rm -f *.core ${AUXCLEAN} ${IMAGE} netbsd.INSTALL ${CBIN} \
${CBIN}.mk ${CBIN}.cache *.o *.lo *.cro *.c ${CBIN}.mk ${CBIN}.cache *.o *.lo *.cro *.c
.ifndef RELEASEDIR release: check_RELEASEDIR .WAIT miniroot.fs
release: gzip -c -9 miniroot.fs \
@echo setenv RELEASEDIR first
@false
.else
release: $(IMAGE) netbsd.INSTALL
@mkdir -p $(RELEASEDIR)/installation/miniroot
gzip -c -9 < $(.OBJDIR)/miniroot.fs \
> $(RELEASEDIR)/installation/miniroot/miniroot.fs.gz > $(RELEASEDIR)/installation/miniroot/miniroot.fs.gz
@mkdir -p $(RELEASEDIR)/binary/kernels
.endif # RELEASEDIR check
.include <bsd.own.mk>
.include <bsd.obj.mk>
.include <bsd.subdir.mk>
.include <bsd.sys.mk>
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,14 +1,15 @@
# $NetBSD: Makefile,v 1.4 2002/04/26 02:54:59 lukem Exp $ # $NetBSD: Makefile,v 1.5 2002/05/02 18:02:56 lukem Exp $
SUBDIR= ramdisk miniroot SUBDIR= ramdisk miniroot
TARGETS+= release TARGETS+= release
release: release: check_RELEASEDIR .WAIT \
-mkdir -p ${RELEASEDIR}/installation/netboot ${DESTDIR}/usr/mdec/bootyy ${DESTDIR}/usr/mdec/netboot \
${RELINSTALL} ${DESTDIR}/usr/mdec/bootyy ${DESTDIR}/usr/mdec/netboot \ ${DESTDIR}/usr/mdec/tapeboot MakeBootTape MakeInstTape
${RELEASE_INSTALL} \
${DESTDIR}/usr/mdec/bootyy ${DESTDIR}/usr/mdec/netboot \
${RELEASEDIR}/installation/netboot ${RELEASEDIR}/installation/netboot
-mkdir -p ${RELEASEDIR}/installation/tapeimage ${RELEASE_INSTALL} ${DESTDIR}/usr/mdec/tapeboot \
${RELINSTALL} ${DESTDIR}/usr/mdec/tapeboot \
${.CURDIR}/MakeBootTape ${.CURDIR}/MakeInstTape \ ${.CURDIR}/MakeBootTape ${.CURDIR}/MakeInstTape \
${RELEASEDIR}/installation/tapeimage ${RELEASEDIR}/installation/tapeimage

View File

@ -1,8 +1,9 @@
# $NetBSD: Makefile,v 1.9 2002/04/26 15:50:47 lukem Exp $ # $NetBSD: Makefile,v 1.10 2002/05/02 18:02:57 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc"
IMAGE= miniroot.fs IMAGE= miniroot.fs
IMAGESIZE= 12m IMAGESIZE= 12m
@ -62,25 +63,13 @@ IMAGEDEPENDS= ${KERNEL} \
${DISTRIBDIR}/miniroot/upgrade.sh \ ${DISTRIBDIR}/miniroot/upgrade.sh \
${OBJDIR}/install.sub ${OBJDIR}/install.sub
realall: ${IMAGE} ib.stamp IMAGEPOSTBUILD= ${INSTALLBOOT} -m ${MACHINE} -v ${IMAGE} \
${DESTDIR}/usr/mdec/bootxx /ufsboot
ib.stamp: ${IMAGE} IMAGE_RELEASEDIR= installation/miniroot
${INSTALLBOOT} -m ${MACHINE} -v ${IMAGE} \
${DESTDIR}/usr/mdec/bootxx /ufsboot
touch ib.stamp
CLEANFILES+= ib.stamp ${IMAGE}.gz
install.sub : ${DISTRIBDIR}/miniroot/install.sub install.sub : ${DISTRIBDIR}/miniroot/install.sub
sed -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@ sed -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@
${IMAGE}.gz: ${IMAGE} .WAIT ib.stamp
gzip -c -9 < ${IMAGE} > ${IMAGE}.gz
release: check_RELEASEDIR .WAIT ${IMAGE}.gz
-mkdir -p ${RELEASEDIR}/installation/miniroot
${RELINSTALL} ${IMAGE}.gz ${RELEASEDIR}/installation/miniroot
.include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image" .include "${DISTRIBDIR}/common/Makefile.image"

View File

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.13 2002/04/26 15:50:47 lukem Exp $ # $NetBSD: Makefile,v 1.14 2002/05/02 18:02:57 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc"
IMAGE= ramdisk.fs IMAGE= ramdisk.fs
IMAGESIZE= 400k IMAGESIZE= 400k
@ -20,8 +20,8 @@ IMAGEDEPENDS= ${CRUNCHBIN} \
disktab fstab passwd protocols services sshrc welcome \ disktab fstab passwd protocols services sshrc welcome \
${NETBSDSRCDIR}/etc/netconfig ${NETBSDSRCDIR}/etc/netconfig
MDSETTARGETS= RAMDISK ramdisk.fs - MDSETTARGETS= RAMDISK ramdisk.fs -
MDSETDIR= binary/kernel MDSET_RELEASEDIR= binary/kernel
# Use stubs to eliminate some large stuff from libc # Use stubs to eliminate some large stuff from libc
HACKSRC= ${DISTRIBDIR}/utils/libhack HACKSRC= ${DISTRIBDIR}/utils/libhack

View File

@ -1,16 +1,16 @@
# $NetBSD: Makefile,v 1.5 2002/04/26 15:05:29 lukem Exp $ # $NetBSD: Makefile,v 1.6 2002/05/02 18:02:58 lukem Exp $
SUBDIR= ramdisk miniroot SUBDIR= ramdisk miniroot
TARGETS= all release TARGETS+= release
release: release: check_RELEASEDIR .WAIT \
-mkdir -p ${RELEASEDIR}/installation/netboot ${DESTDIR}/usr/mdec/netboot ${DESTDIR}/usr/mdec/tapeboot \
${RELINSTALL} ${DESTDIR}/usr/mdec/netboot \ MakeBootTape MakeInstTape
${RELEASE_INSTALL} ${DESTDIR}/usr/mdec/netboot \
${RELEASEDIR}/installation/netboot ${RELEASEDIR}/installation/netboot
-mkdir -p ${RELEASEDIR}/installation/tapeimage ${RELEASE_INSTALL} ${DESTDIR}/usr/mdec/tapeboot \
${RELINSTALL} ${DESTDIR}/usr/mdec/tapeboot \
${RELEASEDIR}/installation/tapeimage ${RELEASEDIR}/installation/tapeimage
${RELINSTALL} ${.CURDIR}/MakeBootTape ${.CURDIR}/MakeInstTape \ ${RELEASE_INSTALL} ${.CURDIR}/MakeBootTape ${.CURDIR}/MakeInstTape \
${RELEASEDIR}/installation/tapeimage ${RELEASEDIR}/installation/tapeimage
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.26 2002/04/26 15:50:48 lukem Exp $ # $NetBSD: Makefile,v 1.27 2002/05/02 18:02:58 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
@ -70,20 +70,7 @@ unconfig:
install.sub : ${TOP}/../miniroot/install.sub install.sub : ${TOP}/../miniroot/install.sub
sed -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@ sed -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@
clean cleandir distclean: release: check_RELEASEDIR .WAIT ${IMAGE}.gz
-rm -f a.out core *.core *.o ${RELEASE_INSTALL} ${IMAGE}.gz ${RELEASEDIR}/installation/miniroot
-rm -f ${CLEANFILES}
.if !defined(RELEASEDIR) .include <bsd.prog.mk>
release:
@echo setenv RELEASEDIR before doing that!
@false
.else # RELEASEDIR
release: ${IMAGE}.gz
-mkdir -p ${RELEASEDIR}/installation/miniroot
${RELINSTALL} ${IMAGE}.gz ${RELEASEDIR}/installation/miniroot
.endif # RELEASEDIR
# Standard rules needed by the above...
.include <bsd.obj.mk>
.include <bsd.subdir.mk>

View File

@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.28 2002/04/26 15:50:49 lukem Exp $ # $NetBSD: Makefile,v 1.29 2002/05/02 18:02:59 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
TOP= ${.CURDIR}/.. TOP= ${.CURDIR}/..
@ -82,26 +81,12 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc" .include "${HACKSRC}/Makefile.inc"
${CBIN}: libhack.o ${CBIN}: libhack.o
clean cleandir distclean: release: check_RELEASEDIR .WAIT $(KERNELS)
-rm -f a.out core *.core *.o *.cro *.c
-rm -f ${CLEANFILES}
.if !defined(RELEASEDIR)
release:
@echo setenv RELEASEDIR before doing that!
@false
.else # RELEASEDIR
release: $(KERNELS)
.for x in ${KERNELS} .for x in ${KERNELS}
gzip -c -9 < ${x} > \ gzip -c -9 < ${x} > \
${RELEASEDIR}/binary/kernel/${x}.gz ${RELEASEDIR}/binary/kernel/${x}.gz
.endfor # KERNELS .endfor # KERNELS
.endif # RELEASEDIR
.INTERRUPT: unconfig .INTERRUPT: unconfig
# Standard rules needed by the above...
.include <bsd.own.mk>
.include <bsd.prog.mk> .include <bsd.prog.mk>
.include <bsd.obj.mk>
.include <bsd.subdir.mk>

View File

@ -1,19 +1,13 @@
# $NetBSD: Makefile,v 1.14 2002/04/26 15:50:50 lukem Exp $ # $NetBSD: Makefile,v 1.15 2002/05/02 18:02:59 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
ITARGET= ${RELEASEDIR}/installation SUBDIR= ramdisk .WAIT ramdisk-kernel .WAIT floppy
TARGETS+= release
SUBDIR= ramdisk .WAIT ramdisk-kernel .WAIT floppy release: check_RELEASEDIR .WAIT ${DESTDIR}/usr/mdec/boot
${RELEASE_INSTALL} ${DESTDIR}/usr/mdec/boot \
INSTKERNOBJ != cd ${.CURDIR}/ramdisk-kernel && ${PRINTOBJDIR} ${RELEASEDIR}/installation/netboot
FLOPPYOBJ != cd ${.CURDIR}/floppy && ${PRINTOBJDIR}
release: check_RELEASEDIR
${RELINSTALL} ${DESTDIR}/usr/mdec/boot ${ITARGET}/netboot/
${RELINSTALL} ${INSTKERNOBJ}/netbsd.INSTALL.gz \
${ITARGET}/netboot/netbsd.ram.gz
${RELINSTALL} ${FLOPPYOBJ}/boot.fs ${ITARGET}/bootfs/
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,4 +0,0 @@
# $NetBSD: Makefile.inc,v 1.8 2002/03/06 12:29:56 lukem Exp $
.include "../../Makefile.inc"
.include <bsd.own.mk>

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.7 2002/04/30 15:28:32 lukem Exp $ # $NetBSD: Makefile,v 1.8 2002/05/02 18:03:00 lukem Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc" .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk> .include <bsd.kernobj.mk>
@ -27,4 +27,7 @@ ${IMAGE}: ${IMAGEDEPENDS}
${PAX} -w -x ustar boot.vax netbsd.gz | dd of=${IMAGE}.tmp seek=16 ${PAX} -w -x ustar boot.vax netbsd.gz | dd of=${IMAGE}.tmp seek=16
dd if=${IMAGE}.tmp of=${IMAGE} bs=${IMAGESIZE} conv=sync dd if=${IMAGE}.tmp of=${IMAGE} bs=${IMAGESIZE} conv=sync
release: check_RELEASEDIR .WAIT ${IMAGE}
${RELEASE_INSTALL} ${IMAGE} ${RELEASEDIR}/installation/bootfs
.include <bsd.prog.mk> .include <bsd.prog.mk>

Some files were not shown because too many files have changed in this diff Show More