parent
45ec8742b1
commit
14b3666e9a
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: Makefile,v 1.6 1999/07/08 16:36:15 tsubai Exp $
|
# $NetBSD: Makefile,v 1.7 1999/08/29 08:45:27 tsubai Exp $
|
||||||
|
|
||||||
TOP= ${.CURDIR}/..
|
TOP= ${.CURDIR}/..
|
||||||
|
|
||||||
|
@ -8,27 +8,23 @@ IMAGE= ramdisk.fs
|
||||||
CBIN= ramdiskbin
|
CBIN= ramdiskbin
|
||||||
|
|
||||||
MOUNT_POINT?= /mnt
|
MOUNT_POINT?= /mnt
|
||||||
# DEV/RDEV file system device, CDEV/RDEV vnconfig device
|
|
||||||
VND?= vnd1
|
VND?= vnd1
|
||||||
VND_DEV= /dev/${VND}a
|
VND_DEV= /dev/${VND}a
|
||||||
VND_RDEV= /dev/r${VND}a
|
VND_RDEV= /dev/r${VND}a
|
||||||
VND_CDEV= /dev/${VND}c
|
|
||||||
VND_CRDEV= /dev/r${VND}c
|
|
||||||
MDEC= ${DESTDIR}/usr/mdec
|
MDEC= ${DESTDIR}/usr/mdec
|
||||||
|
|
||||||
LISTS= list
|
LISTS= list
|
||||||
CRUNCHCONF= ${CBIN}.conf
|
CRUNCHCONF= ${CBIN}.conf
|
||||||
MTREE= mtree.conf
|
MTREE= mtree.conf
|
||||||
|
|
||||||
SIZE= 1536k
|
SIZE= 2048k
|
||||||
GEOM= 512/16/2/96
|
|
||||||
DISKTYPE= floppyinstfs
|
DISKTYPE= floppyinstfs
|
||||||
|
|
||||||
all: ${CBIN}
|
all: ${CBIN}
|
||||||
dd if=/dev/zero of=${IMAGE} bs=${SIZE} count=1
|
dd if=/dev/zero of=${IMAGE} bs=${SIZE} count=1
|
||||||
vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
|
vnconfig -t ${DISKTYPE} -v -c ${VND} ${IMAGE}
|
||||||
disklabel -rw ${VND_CDEV} ${DISKTYPE}
|
disklabel -rw ${VND} ${DISKTYPE}
|
||||||
newfs -B be -m 0 -o space -i 6144 -c 96 ${VND_RDEV}
|
newfs -B be -m 0 -o space -i 6144 -c 128 ${VND_RDEV}
|
||||||
mount ${VND_DEV} ${MOUNT_POINT}
|
mount ${VND_DEV} ${MOUNT_POINT}
|
||||||
mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u
|
mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u
|
||||||
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
|
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
|
||||||
|
@ -37,25 +33,25 @@ all: ${CBIN}
|
||||||
@df -i ${MOUNT_POINT}
|
@df -i ${MOUNT_POINT}
|
||||||
@echo ""
|
@echo ""
|
||||||
umount ${MOUNT_POINT}
|
umount ${MOUNT_POINT}
|
||||||
vnconfig -u ${VND_CDEV}
|
vnconfig -u ${VND}
|
||||||
|
|
||||||
unconfig:
|
unconfig:
|
||||||
-umount -f ${MOUNT_POINT}
|
-umount -f ${MOUNT_POINT}
|
||||||
-vnconfig -u ${VND_CDEV}
|
-vnconfig -u ${VND}
|
||||||
-/bin/rm -f ${IMAGE}
|
-rm -f ${IMAGE}
|
||||||
|
|
||||||
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
|
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
|
||||||
crunchgen -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}
|
crunchgen -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}
|
||||||
|
|
||||||
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c libhack.o
|
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c #libhack.o
|
||||||
make -f ${CBIN}.mk all
|
make -f ${CBIN}.mk all
|
||||||
|
|
||||||
HACKSRC=${TOP}/../../utils/libhack
|
#HACKSRC=${TOP}/../../utils/libhack
|
||||||
.include "${HACKSRC}/Makefile.inc"
|
#.include "${HACKSRC}/Makefile.inc"
|
||||||
|
|
||||||
clean cleandir distclean:
|
clean cleandir distclean:
|
||||||
/bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c
|
rm -f ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache
|
||||||
|
rm -f *.core *.o *.cro *.c
|
||||||
|
|
||||||
.include <bsd.obj.mk>
|
.include <bsd.obj.mk>
|
||||||
.include <bsd.subdir.mk>
|
.include <bsd.subdir.mk>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: list,v 1.5 1999/06/05 20:17:41 bouyer Exp $
|
# $NetBSD: list,v 1.6 1999/08/29 08:45:27 tsubai Exp $
|
||||||
|
|
||||||
# copy the crunched binary, link to it, and kill it
|
# copy the crunched binary, link to it, and kill it
|
||||||
COPY ${OBJDIR}/ramdiskbin ramdiskbin
|
COPY ${OBJDIR}/ramdiskbin ramdiskbin
|
||||||
|
@ -77,9 +77,10 @@ COPY ${CURDIR}/termcap.src usr/share/misc/termcap
|
||||||
# various files that we need in /etc for the install
|
# various files that we need in /etc for the install
|
||||||
#COPY ${DESTDIR}/etc/disktab etc/disktab
|
#COPY ${DESTDIR}/etc/disktab etc/disktab
|
||||||
COPY ${CURDIR}/../../../../etc/group etc/group
|
COPY ${CURDIR}/../../../../etc/group etc/group
|
||||||
COPY ${CURDIR}/../../../../etc/master.passwd etc/passwd
|
COPY ${CURDIR}/../../../../etc/master.passwd etc/master.passwd
|
||||||
COPY ${CURDIR}/../../../../etc/protocols etc/protocols
|
COPY ${CURDIR}/../../../../etc/protocols etc/protocols
|
||||||
COPY ${CURDIR}/../../../../etc/services etc/services
|
COPY ${CURDIR}/../../../../etc/services etc/services
|
||||||
|
SPECIAL pwd_mkdb -p -d . etc/master.passwd
|
||||||
|
|
||||||
# the disktab explanation file
|
# the disktab explanation file
|
||||||
COPY ${CURDIR}/disktab.preinstall etc/disktab.preinstall
|
COPY ${CURDIR}/disktab.preinstall etc/disktab.preinstall
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: ramdiskbin.conf,v 1.5 1999/07/08 16:36:15 tsubai Exp $
|
# $NetBSD: ramdiskbin.conf,v 1.6 1999/08/29 08:45:27 tsubai Exp $
|
||||||
#
|
#
|
||||||
# ramdiskbin.conf - unified binary for the install ramdisk
|
# ramdiskbin.conf - unified binary for the install ramdisk
|
||||||
|
|
||||||
|
@ -34,7 +34,5 @@ ln rcmd rsh
|
||||||
ln reboot halt
|
ln reboot halt
|
||||||
ln restore rrestore
|
ln restore rrestore
|
||||||
|
|
||||||
srcdirs distrib/utils
|
#libs libhack.o
|
||||||
|
libs -ledit -lutil -lcurses -ltermcap -lcrypt -ll -lm -lz -lkvm -lipsec
|
||||||
libs libhack.o
|
|
||||||
libs -ledit -lutil -lcurses -ltermcap -lcrypt -ll -lm -lz -lkvm
|
|
||||||
|
|
Loading…
Reference in New Issue