* Add `installation/floppy' and `installation/tape' directories to the

release(7) hierarchy and populate them with links to images in `bootfs'

* Remove miniroot scripts from `installation/netboot'; these are contained
  in the instfs.tgz which can be used to setup an NFS root directory (for
  installation purposes).

* Make the bootable cd-rom image using the `bootfs' filesystem, since a bug
  in the cd driver prevents us from running directly from a CD filesystem.
This commit is contained in:
pk 2000-10-31 21:18:36 +00:00
parent 4864442381
commit 63a0bbd711
1 changed files with 24 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.20 2000/10/22 14:22:08 pk Exp $
# $NetBSD: Makefile.inc,v 1.21 2000/10/31 21:18:36 pk Exp $
#
# etc.sparc/Makefile.inc -- sparc-specific etc Makefile targets
#
@ -12,7 +12,8 @@ BUILD_KERNELS+= INSTALL
# Add sparc installation directories
MD_INSTALLATION_DIRS= \
installation/miniroot installation/netboot installation/bootfs
installation/miniroot installation/netboot installation/bootfs \
installation/tape installation/floppy
INSTALLATION_DIRS+=$(MD_INSTALLATION_DIRS)
snap_pre_md:
@ -28,23 +29,37 @@ snap_md_post:
(cd $(TOP)/distrib; ${MAKE})
# transfer images to release hierarchy
.for dir in notes miniroot sparc/ramdisk sparc/bootfs sparc/instfs
.for dir in notes miniroot sparc/bootfs sparc/instfs
(cd $(TOP)/distrib/$(dir); ${MAKE} release)
.endfor
# install boot image and installation scripts in netboot directory
# install boot image in netboot directory
cp -p $(DESTDIR)/usr/mdec/boot.net $(RELEASEDIR)/installation/netboot
.for f in install.sh upgrade.sh install.sub ../sparc/install.md
cp -p $(TOP)/distrib/miniroot/$f $(RELEASEDIR)/installation/netboot
.endfor
# install links to boot and installation utilities for various media
rm -f ${RELEASEDIR}/installation/tape/tapefile1.gz
rm -f ${RELEASEDIR}/installation/tape/tapefile2
rm -f ${RELEASEDIR}/installation/floppy/disk1.gz
rm -f ${RELEASEDIR}/installation/floppy/disk2
rm -f ${RELEASEDIR}/installation/netboot/rootfs.tgz
ln -s ../bootfs/netbsd.ram.aout.gz \
${RELEASEDIR}/installation/tape/tapefile1.gz
ln -s ../bootfs/instfs.tgz \
${RELEASEDIR}/installation/tape/tapefile2
ln -s ../bootfs/boot.fs.gz \
${RELEASEDIR}/installation/floppy/disk1.gz
ln -s ../bootfs/instfs.tgz \
${RELEASEDIR}/installation/floppy/disk2
ln -s ../bootfs/instfs.tgz \
${RELEASEDIR}/installation/netboot/rootfs.tgz
# compute checksums
.for dir in ${MD_INSTALLATION_DIRS}
sh $(TOP)/distrib/sets/makesums -t ${RELEASEDIR}/${dir} '*'
.endfor
CDBOOTIMAGE!= cd ${TOP}/distrib/miniroot; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/miniroot.fs\n" | \
CDBOOTIMAGE!= cd ${TOP}/distrib/sparc/bootfs; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/boot.fs\n" | \
${MAKE} -s -f-
iso-image_md_post: