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