Home | History | Annotate | Line # | Download | only in miniroot
Makefile revision 1.1.1.1
      1 #	$NetBSD: Makefile,v 1.1.1.1 1995/10/08 23:07:53 gwr Exp $
      2 
      3 TOP=		${.CURDIR}/..
      4 
      5 # This include just sets REV=XX
      6 .include "${TOP}/Makefile.inc"
      7 
      8 IMAGE=	miniroot
      9 CBIN=	mini_usr
     10 
     11 TREE=	${TOP}/common/${IMAGE}.tree
     12 
     13 LISTS=	${TOP}/common/mini_sbin.list \
     14 	${TOP}/common/mini_bin.list \
     15 	${TOP}/common/${CBIN}.list \
     16 	${TOP}/common/${IMAGE}.list
     17 
     18 MOUNT_POINT=	/mnt
     19 DISKTYPE=	miniroot
     20 BDEV=		/dev/sd2b
     21 CDEV=		/dev/rsd2b
     22 
     23 KERNEL=${SRCSYSDIR}/arch/sun3/compile/GENERIC/netbsd
     24 
     25 # These are all the parameters for the miniroot: (6MB)
     26 NBLKS=		12288
     27 # old format, minfree, opt,  b/i  trks, sects, cpg
     28 NEWFSARGS= -O -m 0 -o space -i 8192 -t 8 -u 32 -c 16
     29 
     30 ${IMAGE}.fs: ${CBIN} do_mount do_files do_bootxx do_kernel do_umount
     31 	dd if=${CDEV} of=$@ bs=64b count=`expr ${NBLKS} / 64`
     32 
     33 # Only do these for the miniroot, not the ramdisk.
     34 do_bootxx:
     35 	sync ; sleep 1 ; sync
     36 	cd ${MOUNT_POINT} ;\
     37 	  usr/mdec/installboot -v ufsboot usr/mdec/bootxx ${CDEV}
     38 
     39 # Copy the generic kernel
     40 do_kernel:
     41 	cp -p ${KERNEL} ${MOUNT_POINT}/netbsd
     42 
     43 # Rules used making ${IMAGE}.fs (do_*)
     44 .include "${TOP}/common/Make.fsimage"
     45 
     46 # Rules for making ${CBIN} ...
     47 .include "${TOP}/common/Make.crunch"
     48 
     49 clean cleandir:
     50 	echo rm -f core ${CLEANFILES} *.o
     51 
     52 # Standard rules needed by the above...
     53 .include <bsd.obj.mk>
     54