2002-05-02 19:09:40 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.26 2002/05/02 15:09:48 lukem Exp $
|
1994-04-12 11:48:20 +04:00
|
|
|
#
|
|
|
|
# etc.sparc/Makefile.inc -- sparc-specific etc Makefile targets
|
|
|
|
#
|
|
|
|
|
1999-10-19 00:39:01 +04:00
|
|
|
TOP= $(.CURDIR)/..
|
|
|
|
|
2001-11-30 01:45:53 +03:00
|
|
|
KERNEL_SETS= GENERIC GENERIC_SCSI3 GENERIC_SUN4U
|
|
|
|
|
|
|
|
BUILD_KERNELS= INSTALL
|
1999-10-19 00:39:01 +04:00
|
|
|
|
2002-05-02 19:09:40 +04:00
|
|
|
MD_INSTALLATION_DIRS= installation/miniroot \
|
|
|
|
installation/netboot \
|
|
|
|
installation/bootfs \
|
|
|
|
installation/tape \
|
|
|
|
installation/floppy
|
|
|
|
INSTALLATION_DIRS+= ${MD_INSTALLATION_DIRS}
|
1999-10-19 00:39:01 +04:00
|
|
|
|
|
|
|
snap_pre_md:
|
|
|
|
.ifndef UPDATE
|
|
|
|
cd $(TOP)/distrib && ${MAKE} clean
|
|
|
|
.endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# Install miniroot images and auxiliary scripts to the release tree
|
|
|
|
#
|
|
|
|
snap_md_post:
|
|
|
|
# make boot/miniroot images
|
|
|
|
(cd $(TOP)/distrib; ${MAKE})
|
|
|
|
|
|
|
|
# transfer images to release hierarchy
|
2000-11-01 00:18:36 +03:00
|
|
|
.for dir in notes miniroot sparc/bootfs sparc/instfs
|
1999-10-19 00:39:01 +04:00
|
|
|
(cd $(TOP)/distrib/$(dir); ${MAKE} release)
|
|
|
|
.endfor
|
|
|
|
|
2000-11-01 00:18:36 +03:00
|
|
|
# install boot image in netboot directory
|
1999-10-19 00:39:01 +04:00
|
|
|
cp -p $(DESTDIR)/usr/mdec/boot.net $(RELEASEDIR)/installation/netboot
|
2000-11-01 00:18:36 +03:00
|
|
|
|
|
|
|
# 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
|
1999-10-19 00:39:01 +04:00
|
|
|
|
|
|
|
# compute checksums
|
|
|
|
.for dir in ${MD_INSTALLATION_DIRS}
|
2002-03-31 20:07:53 +04:00
|
|
|
${MAKESUMS} -t ${RELEASEDIR}/${dir} '*'
|
1999-10-19 00:39:01 +04:00
|
|
|
.endfor
|
2000-10-20 18:13:12 +04:00
|
|
|
|
2002-03-05 22:53:19 +03:00
|
|
|
CDBOOTIMAGEDIR!= cd ${TOP}/distrib/sparc/bootfs && ${PRINTOBJDIR}
|
|
|
|
CDBOOTIMAGE= ${CDBOOTIMAGEDIR}/boot.fs
|
2000-10-20 18:13:12 +04:00
|
|
|
|
|
|
|
iso-image_md_post:
|
|
|
|
mksunbootcd ${RELEASEDIR}/installation/cdrom/netbsd-${MACHINE}.iso \
|
|
|
|
$(CDBOOTIMAGE) $(CDBOOTIMAGE) $(CDBOOTIMAGE)
|