1# $NetBSD: Makefile.inc,v 1.26 2002/05/02 15:09:48 lukem Exp $ 2# 3# etc.sparc/Makefile.inc -- sparc-specific etc Makefile targets 4# 5 6TOP= $(.CURDIR)/.. 7 8KERNEL_SETS= GENERIC GENERIC_SCSI3 GENERIC_SUN4U 9 10BUILD_KERNELS= INSTALL 11 12MD_INSTALLATION_DIRS= installation/miniroot \ 13 installation/netboot \ 14 installation/bootfs \ 15 installation/tape \ 16 installation/floppy 17INSTALLATION_DIRS+= ${MD_INSTALLATION_DIRS} 18 19snap_pre_md: 20.ifndef UPDATE 21 cd $(TOP)/distrib && ${MAKE} clean 22.endif 23 24# 25# Install miniroot images and auxiliary scripts to the release tree 26# 27snap_md_post: 28 # make boot/miniroot images 29 (cd $(TOP)/distrib; ${MAKE}) 30 31 # transfer images to release hierarchy 32.for dir in notes miniroot sparc/bootfs sparc/instfs 33 (cd $(TOP)/distrib/$(dir); ${MAKE} release) 34.endfor 35 36 # install boot image in netboot directory 37 cp -p $(DESTDIR)/usr/mdec/boot.net $(RELEASEDIR)/installation/netboot 38 39 # install links to boot and installation utilities for various media 40 rm -f ${RELEASEDIR}/installation/tape/tapefile1.gz 41 rm -f ${RELEASEDIR}/installation/tape/tapefile2 42 rm -f ${RELEASEDIR}/installation/floppy/disk1.gz 43 rm -f ${RELEASEDIR}/installation/floppy/disk2 44 rm -f ${RELEASEDIR}/installation/netboot/rootfs.tgz 45 ln -s ../bootfs/netbsd.ram.aout.gz \ 46 ${RELEASEDIR}/installation/tape/tapefile1.gz 47 ln -s ../bootfs/instfs.tgz \ 48 ${RELEASEDIR}/installation/tape/tapefile2 49 ln -s ../bootfs/boot.fs.gz \ 50 ${RELEASEDIR}/installation/floppy/disk1.gz 51 ln -s ../bootfs/instfs.tgz \ 52 ${RELEASEDIR}/installation/floppy/disk2 53 ln -s ../bootfs/instfs.tgz \ 54 ${RELEASEDIR}/installation/netboot/rootfs.tgz 55 56 # compute checksums 57.for dir in ${MD_INSTALLATION_DIRS} 58 ${MAKESUMS} -t ${RELEASEDIR}/${dir} '*' 59.endfor 60 61CDBOOTIMAGEDIR!= cd ${TOP}/distrib/sparc/bootfs && ${PRINTOBJDIR} 62CDBOOTIMAGE= ${CDBOOTIMAGEDIR}/boot.fs 63 64iso-image_md_post: 65 mksunbootcd ${RELEASEDIR}/installation/cdrom/netbsd-${MACHINE}.iso \ 66 $(CDBOOTIMAGE) $(CDBOOTIMAGE) $(CDBOOTIMAGE) 67