Home | History | Annotate | Line # | Download | only in etc.sparc
Makefile.inc revision 1.19
      1 #	$NetBSD: Makefile.inc,v 1.19 2000/10/20 14:13:12 pk 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_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/ramdisk sparc/bootfs
     32 	(cd $(TOP)/distrib/$(dir); ${MAKE} release)
     33 .endfor
     34 
     35 	# install boot image and installation scripts in netboot directory
     36 	cp -p $(DESTDIR)/usr/mdec/boot.net $(RELEASEDIR)/installation/netboot
     37 .for f in install.sh upgrade.sh install.sub ../sparc/install.md
     38 	cp -p $(TOP)/distrib/miniroot/$f $(RELEASEDIR)/installation/netboot
     39 .endfor
     40 
     41 	# compute checksums
     42 .for dir in ${MD_INSTALLATION_DIRS}
     43 	sh $(TOP)/distrib/sets/makesums -t ${RELEASEDIR}/${dir} '*'
     44 .endfor
     45 
     46 CDBOOTIMAGE!=	cd ${TOP}/distrib/miniroot; \
     47 		printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/miniroot.fs\n" | \
     48 		${MAKE} -s -f-
     49 
     50 iso-image_md_post:
     51 	mksunbootcd ${RELEASEDIR}/installation/cdrom/netbsd-${MACHINE}.iso \
     52 		$(CDBOOTIMAGE) $(CDBOOTIMAGE) $(CDBOOTIMAGE)
     53