Home | History | Annotate | Line # | Download | only in etc.sparc
Makefile.inc revision 1.22
      1  1.22      mrg #	$NetBSD: Makefile.inc,v 1.22 2001/03/04 10:14:55 mrg 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.22      mrg EXTRA_KERNELS+= GENERIC_SCSI3 GENERIC_SUN4U
     11  1.18       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.21       pk 	installation/miniroot installation/netboot installation/bootfs \
     16  1.21       pk 	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.21       pk .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.21       pk 	# install boot image in netboot directory
     37  1.14       pk 	cp -p $(DESTDIR)/usr/mdec/boot.net $(RELEASEDIR)/installation/netboot
     38  1.21       pk 
     39  1.21       pk 	# install links to boot and installation utilities for various media
     40  1.21       pk 	rm -f ${RELEASEDIR}/installation/tape/tapefile1.gz
     41  1.21       pk 	rm -f ${RELEASEDIR}/installation/tape/tapefile2
     42  1.21       pk 	rm -f ${RELEASEDIR}/installation/floppy/disk1.gz
     43  1.21       pk 	rm -f ${RELEASEDIR}/installation/floppy/disk2
     44  1.21       pk 	rm -f ${RELEASEDIR}/installation/netboot/rootfs.tgz
     45  1.21       pk 	ln -s ../bootfs/netbsd.ram.aout.gz \
     46  1.21       pk 			${RELEASEDIR}/installation/tape/tapefile1.gz
     47  1.21       pk 	ln -s ../bootfs/instfs.tgz \
     48  1.21       pk 			${RELEASEDIR}/installation/tape/tapefile2
     49  1.21       pk 	ln -s ../bootfs/boot.fs.gz \
     50  1.21       pk 			${RELEASEDIR}/installation/floppy/disk1.gz
     51  1.21       pk 	ln -s ../bootfs/instfs.tgz \
     52  1.21       pk 			${RELEASEDIR}/installation/floppy/disk2
     53  1.21       pk 	ln -s ../bootfs/instfs.tgz \
     54  1.21       pk 			${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.19       pk 
     61  1.21       pk CDBOOTIMAGE!=	cd ${TOP}/distrib/sparc/bootfs; \
     62  1.21       pk 		printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/boot.fs\n" | \
     63  1.19       pk 		${MAKE} -s -f-
     64  1.19       pk 
     65  1.19       pk iso-image_md_post:
     66  1.19       pk 	mksunbootcd ${RELEASEDIR}/installation/cdrom/netbsd-${MACHINE}.iso \
     67  1.19       pk 		$(CDBOOTIMAGE) $(CDBOOTIMAGE) $(CDBOOTIMAGE)
     68