diff options
author | 2005-04-28 21:56:11 +0000 | |
---|---|---|
committer | 2005-04-28 21:56:11 +0000 | |
commit | dd5f45b6e3dc61e2c08065301c59b8188642f442 (patch) | |
tree | e38534ad987e8fa6ec1ed07f70ed22e980a64dcd | |
parent | ... and don't bother making obj in libobjc. (diff) | |
download | wireguard-openbsd-dd5f45b6e3dc61e2c08065301c59b8188642f442.tar.xz wireguard-openbsd-dd5f45b6e3dc61e2c08065301c59b8188642f442.zip |
strip bootblock, attempt to use a smaller sgivol size
-rw-r--r-- | distrib/sgi/cdfs/Makefile | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/distrib/sgi/cdfs/Makefile b/distrib/sgi/cdfs/Makefile index 49b1c241f6a..2238b0f9b08 100644 --- a/distrib/sgi/cdfs/Makefile +++ b/distrib/sgi/cdfs/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2005/04/28 14:56:08 deraadt Exp $ +# $OpenBSD: Makefile,v 1.3 2005/04/28 21:56:11 deraadt Exp $ TOP= ${.CURDIR}/.. @@ -13,27 +13,29 @@ all: ${CDROM} ${CDROM}: -rm -rf ${.OBJDIR}/cd-dir mkdir -p ${.OBJDIR}/cd-dir/ - cp ${.OBJDIR}/../ramdisk/${BSDRD} ${.OBJDIR}/bsd - gzip -9f bsd + #cp ${DESTDIR}/usr/mdec/boot ${.OBJDIR}/boot + objcopy -Sg -R .comment ${DESTDIR}/usr/mdec/boot ${.OBJDIR}/boot + strip ${.OBJDIR}/boot + gzip -9f < ${.OBJDIR}/../ramdisk/${BSDRD} > ${.OBJDIR}/bsd dd if=/dev/zero of=${.OBJDIR}/${FFS} bs=1m count=8 vnconfig -v -c svnd0 ${.OBJDIR}/${FFS} disklabel -w svnd0 rdroot "OpenBSD/sgi " newfs /dev/rsvnd0a mount /dev/svnd0a ${.OBJDIR}/cd-dir mkdir -p ${.OBJDIR}/cd-dir/${OSrev}/sgi - cp ${.OBJDIR}/bsd.gz ${.OBJDIR}/cd-dir/bsd + cp ${.OBJDIR}/bsd ${.OBJDIR}/cd-dir/bsd ln ${.OBJDIR}/cd-dir/bsd ${.OBJDIR}/cd-dir/bsd.rd ln ${.OBJDIR}/cd-dir/bsd ${.OBJDIR}/cd-dir/${OSrev}/sgi/bsd ln ${.OBJDIR}/cd-dir/bsd ${.OBJDIR}/cd-dir/${OSrev}/sgi/bsd.rd - cp ${DESTDIR}/usr/mdec/boot ${.OBJDIR}/cd-dir/boot + cp ${.OBJDIR}/boot ${.OBJDIR}/cd-dir/boot umount ${.OBJDIR}/cd-dir @df /dev/svnd0a vnconfig -u svnd0 dd if=/dev/zero of=${.OBJDIR}/${CDROM} bs=1m count=10 vnconfig -v -c svnd0 ${.OBJDIR}/${CDROM} - # would love to use 64 - /usr/mdec/sgivol -f -i -h 128 svnd0 | tee ${.OBJDIR}/volhdr - /usr/mdec/sgivol -f -w boot ${DESTDIR}/usr/mdec/boot svnd0 + # would love to use -h 64, but boot is slightly too big + /usr/mdec/sgivol -f -i -h 88 svnd0 > ${.OBJDIR}/volhdr + /usr/mdec/sgivol -f -w boot ${.OBJDIR}/boot svnd0 vnconfig -u svnd0 dd if=${.OBJDIR}/${FFS} of=${.OBJDIR}/${CDROM} bs=512 \ seek=`cat ${.OBJDIR}/volhdr | grep 'Volume Header' | awk '{print $$3}'` @@ -47,7 +49,7 @@ unconfig: -vnconfig -u svnd0 clean cleandir: - /bin/rm -f ${CDROM} ${CDROM2} ${FFS} volhdr bsd bsd.gz + /bin/rm -f ${CDROM} ${CDROM2} ${FFS} volhdr bsd boot rm -rf cd-dir .include <bsd.obj.mk> |