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