1 # $NetBSD: Makefile.inc,v 1.15.4.3 2000/11/01 03:18:05 tv Exp $ 2 # 3 # etc.sparc/Makefile.inc -- sparc-specific etc Makefile targets 4 # 5 6 TOP= $(.CURDIR)/.. 7 8 # Set this for any kernels beyond GENERIC you want to include 9 # in the distribution. 10 EXTRA_KERNELS+= GENERIC_SCSI3 11 BUILD_KERNELS+= INSTALL 12 13 # Add sparc installation directories 14 MD_INSTALLATION_DIRS= \ 15 installation/miniroot installation/netboot installation/bootfs \ 16 installation/tape installation/floppy 17 INSTALLATION_DIRS+=$(MD_INSTALLATION_DIRS) 18 19 snap_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 # 27 snap_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 sh $(TOP)/distrib/sets/makesums -t ${RELEASEDIR}/${dir} '*' 59 .endfor 60 61 CDBOOTIMAGE!= cd ${TOP}/distrib/sparc/bootfs; \ 62 printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/boot.fs\n" | \ 63 ${MAKE} -s -f- 64 65 iso-image_md_post: 66 mksunbootcd ${RELEASEDIR}/installation/cdrom/netbsd-${MACHINE}.iso \ 67 $(CDBOOTIMAGE) $(CDBOOTIMAGE) $(CDBOOTIMAGE) 68