Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/distrib/sparc64/xminiroot Pull up revisions 1.1-1.2 (re...
details: https://anonhg.NetBSD.org/src/rev/4c4153e09a79
branches: netbsd-1-5
changeset: 490595:4c4153e09a79
user: he <he%NetBSD.org@localhost>
date: Sat Feb 03 20:21:26 2001 +0000
description:
Pull up revisions 1.1-1.2 (requested by mrg):
Rename sparc64 ``ramdisk'' to ``xminiroot'' to avoid confusion
about what it actually does.
diffstat:
distrib/sparc64/xminiroot/Makefile | 120 +++++++++++++++++++++++++++++++++++++
1 files changed, 120 insertions(+), 0 deletions(-)
diffs (124 lines):
diff -r 03cd1219d0ba -r 4c4153e09a79 distrib/sparc64/xminiroot/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/xminiroot/Makefile Sat Feb 03 20:21:26 2001 +0000
@@ -0,0 +1,120 @@
+# $NetBSD: Makefile,v 1.2.2.2 2001/02/03 20:21:26 he Exp $
+
+TOP= ${.CURDIR}/..
+MINIROOT= ${TOP}/../miniroot
+HACKSRC= ${TOP}/../utils/libhack
+SRCROOT= ${TOP}/../..
+WARNS=1
+
+.if ${MACHINE_ARCH} == "i386"
+RAW_PART= d
+.else
+RAW_PART= c
+.endif
+
+# Need to add more cases
+.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "m68k" || \
+ ${MACHINE_ARCH} == "sparc64"
+FS_END= be
+.else # i386, pmax
+FS_END= le
+.endif
+
+AUXDEPENDS= dot.profile disktab.preinstall termcap.mini \
+ dist/base_obsolete dist/comp_obsolete \
+ dist/games_obsolete dist/man_obsolete dist/misc_obsolete \
+ dist/secr_obsolete dist/xbase_obsolete dist/xserver_obsolete
+AUXCLEAN= list ${CBIN}.conf dot.profile
+
+CBIN= ramdiskbin
+
+.if ${MACHINE_ARCH} == "sparc64"
+CSIZE?= 10240
+.endif
+
+MOUNT_POINT?= /mnt
+# DEV/RDEV file system device, CDEV/RDEV vnconfig device
+VND?= vnd0
+VND_DEV= /dev/${VND}c
+VND_RDEV= /dev/r${VND}c
+VND_CDEV= /dev/${VND}${RAW_PART}
+VND_CRDEV= /dev/r${VND}${RAW_PART}
+IMAGE?= miniroot.fs
+CSIZE?= 3312
+MDEC= ${DESTDIR}/usr/mdec
+
+LISTS= list
+CRUNCHCONF= ${CBIN}.conf
+MTREE= mtree.conf
+
+CRUNCHGEN?= crunchgen
+DISKTYPE?= miniroot
+
+all: ${CBIN} ${AUXDEPENDS} ${MTREE} ${LISTS} dot.profile
+ dd if=/dev/zero of=${IMAGE} count=${CSIZE}
+ vnconfig -v -c ${VND_CDEV} ${IMAGE}
+ disklabel -f ${.CURDIR}/disktab -rw ${VND_CDEV} ${DISKTYPE}
+ newfs -B ${FS_END} -m 0 -o space -i 5120 -c 80 ${VND_RDEV} ${DISKTYPE}
+ mount -o softdep ${VND_DEV} ${MOUNT_POINT}
+ mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u
+ TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
+ KERNOBJDIR=${KERNOBJDIR} \
+ TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS}
+ @echo ""
+ @df -i ${MOUNT_POINT}
+ @echo ""
+ @echo "installing new bootblocks"
+ ${MDEC}/binstall -m ${DESTDIR}/usr/mdec -u -v ffs ${MOUNT_POINT}
+ umount ${MOUNT_POINT}
+ vnconfig -u ${VND_CDEV}
+
+unconfig:
+ -umount -f ${MOUNT_POINT}
+ -vnconfig -u ${VND_DEV}
+ -/bin/rm -f ${IMAGE}
+
+dot.profile: dot.profile.m4
+ m4 -DMACHINE_ARCH=${MACHINE_ARCH} -DMACHINE=${MACHINE} \
+ ${.ALLSRC} > ${.TARGET}
+
+${LISTS}: ${LISTS}.m4
+ m4 -DMACHINE_ARCH=${MACHINE_ARCH} -DMACHINE=${MACHINE} \
+ -DSRCROOT=${SRCROOT} ${.ALLSRC} > ${.TARGET}
+
+${CBIN}.conf: ${CBIN}.m4
+ m4 -DMACHINE_ARCH=${MACHINE_ARCH} -DMACHINE=${MACHINE} \
+ ${.ALLSRC} > ${.TARGET}
+
+${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
+ ${CRUNCHGEN} -D ${SRCROOT} -L ${DESTDIR}/usr/lib ${.ALLSRC}
+
+${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
+ ${MAKE} -f ${CBIN}.mk all
+
+# This is listed in ramdiskbin.conf but is built here.
+${CBIN}: libhack.o
+
+# Use stubs to eliminate some large stuff from libc
+.include "${HACKSRC}/Makefile.inc"
+
+# turn off small gethostby* temporarily
+HACKOBJS:= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o setlocale.o yplib.o
+
+clean cleandir distclean:
+ /bin/rm -f *.core ${AUXCLEAN} ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.cro *.c
+
+.ifndef RELEASEDIR
+release:
+ @echo setenv RELEASEDIR first
+ @false
+.else
+release: $(IMAGE)
+ @mkdir -p $(RELEASEDIR)/installation/miniroot
+ gzip -c -9 < $(.OBJDIR)/miniroot.fs \
+ > $(RELEASEDIR)/installation/miniroot/miniroot.fs.gz
+.endif # RELEASEDIR check
+
+.include <bsd.own.mk>
+.include <bsd.obj.mk>
+.include <bsd.subdir.mk>
+.include <bsd.sys.mk>
Home |
Main Index |
Thread Index |
Old Index