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