diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-10-12 01:18:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-10-12 01:18:07 +0000 |
commit | 70a1902d7725a18650bd68dd2d63c1e4b95dcee1 (patch) | |
tree | 38c677aa5b962995a62d93d3dafd6d1af766af48 /distrib/mvme68k/ramdisk/Makefile | |
parent | 24e918b04736223c98128a7e9b14e80517500ddc (diff) |
first cut, copied from sun3 stuff
Diffstat (limited to 'distrib/mvme68k/ramdisk/Makefile')
-rw-r--r-- | distrib/mvme68k/ramdisk/Makefile | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/distrib/mvme68k/ramdisk/Makefile b/distrib/mvme68k/ramdisk/Makefile new file mode 100644 index 00000000000..278e1c30042 --- /dev/null +++ b/distrib/mvme68k/ramdisk/Makefile @@ -0,0 +1,70 @@ +# $NetBSD: Makefile,v 1.3 1995/11/21 21:19:14 gwr Exp $ + +TOP= ${.CURDIR}/.. + +# This include just sets REV=XX +.include "${TOP}/Makefile.inc" + +IMAGE= ramdisk +CBIN= rd_bin + +TREE= ${TOP}/common/${IMAGE}.tree + +LISTS= ${TOP}/common/${CBIN}.list \ + ${TOP}/common/${IMAGE}.list + +KERNEL=${SRCSYSDIR}/arch/sun3/compile/RAMDISK/netbsd + +MOUNT_POINT= /mnt +BDEV= /dev/rd0 +CDEV= /dev/rd0 + +# These are all the parameters for the root fs: (256K) +DISKTYPE= rdroot +NBLKS= 512 +# old format, minfree, opt, b/i trks, sects, cpg +NEWFSARGS= -O -m 0 -o space -i 2048 -t 2 -u 16 -c 16 + +CLEANFILES= netbsd-rd rdsetroot ${IMAGE}.fs + +netbsd-rd : rdsetroot ${IMAGE}.fs + cp ${KERNEL} netbsd-tmp + ./rdsetroot netbsd-tmp < ${IMAGE}.fs + -mv -f netbsd-tmp $@ + +rdsetroot: ${TOP}/common/rdsetroot.c + $(CC) -o $@ -DDEBUG ${TOP}/common/rdsetroot.c + +${IMAGE}.fs: ${TREE} ${LISTS} ${CBIN} + -newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE} + mount ${BDEV} ${MOUNT_POINT} + mtree -def ${TREE} -p ${MOUNT_POINT}/ -u + TOPDIR=${TOP} CURDIR=${.CURDIR} \ + OBJDIR=${.OBJDIR} TARGDIR=${MOUNT_POINT} \ + sh ${TOP}/common/RunList.sh ${LISTS} + sync + @echo "" + @df -i ${MOUNT_POINT} + @echo "" + -umount ${MOUNT_POINT} + dd if=${CDEV} of=$@ count=${NBLKS} + +# Do not delete this if I change my mind and kill make... +.PRECIOUS: ${IMAGE}.fs + +# Rules for making ${CBIN} ... +.include "${TOP}/common/Make.crunch" + +# This is listed in rd_bin.conf but is built here. +${CBIN} : libhack.o + +# Use stubs to eliminate some large stuff from libc +HACKSRC=${TOP}/../utils/libhack +.include "${HACKSRC}/Makefile.inc" + +clean cleandir: + -rm -f a.out core *.core *.o + -rm -f ${CLEANFILES} + +# Standard rules needed by the above... +.include <bsd.obj.mk> |