NetBSD/etc/etc.sparc/Makefile.inc
thorpej 44f4566e1a Change the way kernel sets are specified, and make them
more consistent.  To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port.  A port may
# specify the following kernels:
#
#       KERNEL_SETS             The list of kernels that will be
#                               packaged into sets, named
#                               kern-${kernel}.tgz.  These kernels
#                               are also placed in the binary/kernels
#                               area of the release package as
#                               netbsd-${kernel}.gz.
#
#       EXTRA_KERNELS           Additional kernels to place in the
#                               binary/kernels area of the release
#                               package as netbsd-${kernel}.gz, but
#                               which are not placed into sets. This
#                               allows a port to provide e.g. a netbootable
#                               installation kernel containing a ramdisk.
#
#       BUILD_KERNELS           Additional kernels to build which are
#                               not placed into sets nor into the
#                               binary/kernels area of the release
#                               package.  These are typically kernels
#                               that are built for inclusion only in
#                               installation disk/CD-ROM/tape images.
#
2001-11-29 22:45:53 +00:00

67 lines
2.0 KiB
Makefile

# $NetBSD: Makefile.inc,v 1.23 2001/11/29 22:46:00 thorpej Exp $
#
# etc.sparc/Makefile.inc -- sparc-specific etc Makefile targets
#
TOP= $(.CURDIR)/..
KERNEL_SETS= GENERIC GENERIC_SCSI3 GENERIC_SUN4U
BUILD_KERNELS= INSTALL
# Add sparc installation directories
MD_INSTALLATION_DIRS= \
installation/miniroot installation/netboot installation/bootfs \
installation/tape installation/floppy
INSTALLATION_DIRS+=$(MD_INSTALLATION_DIRS)
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
.for dir in notes miniroot sparc/bootfs sparc/instfs
(cd $(TOP)/distrib/$(dir); ${MAKE} release)
.endfor
# install boot image in netboot directory
cp -p $(DESTDIR)/usr/mdec/boot.net $(RELEASEDIR)/installation/netboot
# 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/sparc/bootfs; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/boot.fs\n" | \
${MAKE} -s -f-
iso-image_md_post:
mksunbootcd ${RELEASEDIR}/installation/cdrom/netbsd-${MACHINE}.iso \
$(CDBOOTIMAGE) $(CDBOOTIMAGE) $(CDBOOTIMAGE)