diff options
Diffstat (limited to 'distrib/amd64/ramdiskA/Makefile')
-rw-r--r-- | distrib/amd64/ramdiskA/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/distrib/amd64/ramdiskA/Makefile b/distrib/amd64/ramdiskA/Makefile index 60171d11600..fd0de7b0b2d 100644 --- a/distrib/amd64/ramdiskA/Makefile +++ b/distrib/amd64/ramdiskA/Makefile @@ -1,10 +1,11 @@ -# $OpenBSD: Makefile,v 1.6 2019/04/30 23:25:19 deraadt Exp $ +# $OpenBSD: Makefile,v 1.7 2019/05/03 20:03:58 deraadt Exp $ FS= floppy${OSrev}.fs FSSIZE= 2880 FSDISKTYPE= floppy3 MOUNT_POINT= /mnt MTREE= ${UTILS}/mtree.conf +RAMDISK= RAMDISK LISTS= ${.CURDIR}/../common/list ${.CURDIR}/list.local UTILS= ${.CURDIR}/../../miniroot @@ -24,7 +25,7 @@ ${FS}: bsd.gz strip -R .comment -R .SUNW_ctf ${.OBJDIR}/boot installboot -v -r ${MOUNT_POINT} `cat vnd` \ ${DESTDIR}/usr/mdec/biosboot ${.OBJDIR}/boot - dd if=bsd.gz of=${MOUNT_POINT}/bsd bs=512 + install -c -m 555 -o root -g wheel bsd.gz ${MOUNT_POINT}/bsd df -i ${MOUNT_POINT} umount ${MOUNT_POINT} vnconfig -u `cat vnd` @@ -37,16 +38,16 @@ bsd.gz: bsd.rd cp bsd.rd bsd.strip strip bsd.strip strip -R .comment -R .SUNW_ctf bsd.strip - gzip -c9n bsd.strip > bsd.gz + gzip -9cn bsd.strip > bsd.gz bsd.rd: mr.fs bsd cp bsd bsd.rd rdsetroot bsd.rd mr.fs bsd: - cd ${.CURDIR}/../../../sys/arch/amd64/compile/RAMDISK && \ + cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' - cp -p ${.CURDIR}/../../../sys/arch/amd64/compile/RAMDISK/obj/bsd bsd + cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin rm -rf $@.d |