-# $OpenBSD: Makefile,v 1.41 2021/02/13 18:44:17 semarie Exp $
+# $OpenBSD: Makefile,v 1.42 2021/02/13 18:46:52 semarie Exp $
FS= install${OSrev}.img
FSSIZE= 1359872
.endif
newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} /dev/r`cat vnd`a
mount /dev/`cat vnd`a ${MOUNT_POINT}
- cp ${DESTDIR}/usr/mdec/boot ${MOUNT_POINT}/boot
- strip -R .comment -R .SUNW_ctf ${MOUNT_POINT}/boot
+ objcopy -S -R .comment -R .SUNW_ctf ${DESTDIR}/usr/mdec/boot ${MOUNT_POINT}/boot
installboot -v -r ${MOUNT_POINT} `cat vnd` \
${DESTDIR}/usr/mdec/biosboot ${MOUNT_POINT}/boot
mkdir -p ${MOUNT_POINT}/${OSREV}/${MACHINE}
-# $OpenBSD: Makefile,v 1.11 2021/02/13 18:44:17 semarie Exp $
+# $OpenBSD: Makefile,v 1.12 2021/02/13 18:46:52 semarie Exp $
FS= floppy${OSrev}.img
FSSIZE= 2880
disklabel -w `cat vnd` ${FSDISKTYPE}
newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} /dev/r`cat vnd`a
mount /dev/`cat vnd`a ${MOUNT_POINT}
- cp ${DESTDIR}/usr/mdec/fdboot ${.OBJDIR}/boot
- strip -R .comment -R .SUNW_ctf ${.OBJDIR}/boot
+ objcopy -S -R .comment -R .SUNW_ctf ${DESTDIR}/usr/mdec/fdboot ${.OBJDIR}/boot
installboot -v -r ${MOUNT_POINT} `cat vnd` \
${DESTDIR}/usr/mdec/biosboot ${.OBJDIR}/boot
install -c -m 555 -o root -g wheel bsd.gz ${MOUNT_POINT}/bsd
MRMAKEFSARGS= -o disklabel=${MRDISKTYPE},minfree=0,density=4096
bsd.gz: bsd.rd
- cp bsd.rd bsd.strip
- strip -R .comment -R .SUNW_ctf bsd.strip
+ objcopy -S -R .comment -R .SUNW_ctf bsd.rd bsd.strip
gzip -9cn bsd.strip > bsd.gz
bsd.rd: mr.fs bsd
-# $OpenBSD: Makefile,v 1.25 2021/02/13 18:44:18 semarie Exp $
+# $OpenBSD: Makefile,v 1.26 2021/02/13 18:46:52 semarie Exp $
FS= miniroot${OSrev}.img
FSSIZE= 9920
umount ${MOUNT_POINT}
newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} /dev/r`cat vnd`a
mount /dev/`cat vnd`a ${MOUNT_POINT}
- cp ${DESTDIR}/usr/mdec/boot ${.OBJDIR}/boot
- strip -R .comment -R .SUNW_ctf ${.OBJDIR}/boot
+ objcopy -S -R .comment -R .SUNW_ctf ${DESTDIR}/usr/mdec/boot ${.OBJDIR}/boot
installboot -v -r ${MOUNT_POINT} `cat vnd` \
${DESTDIR}/usr/mdec/biosboot ${.OBJDIR}/boot
install -c -m 555 -o root -g wheel bsd.gz ${MOUNT_POINT}/bsd
MRMAKEFSARGS= -o disklabel=${MRDISKTYPE},minfree=0,density=4096
bsd.gz: bsd.rd
- cp bsd.rd bsd.strip
- strip -R .comment -R .SUNW_ctf bsd.strip
+ objcopy -S -R .comment -R .SUNW_ctf bsd.rd bsd.strip
gzip -9cn bsd.strip > bsd.gz
bsd.rd: mr.fs bsd
-# $OpenBSD: Makefile,v 1.30 2021/01/05 15:10:42 deraadt Exp $
+# $OpenBSD: Makefile,v 1.31 2021/02/13 18:46:52 semarie Exp $
FS= install${OSrev}.img
FSSIZE= 921600
disklabel -w `cat vnd` ${FSDISKTYPE}
newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} /dev/r`cat vnd`a
mount /dev/`cat vnd`a ${MOUNT_POINT}
- cp ${DESTDIR}/usr/mdec/boot ${MOUNT_POINT}/boot
- strip -R .comment -R .SUNW_ctf ${MOUNT_POINT}/boot
+ objcopy -S -R .comment -R .SUNW_ctf ${DESTDIR}/usr/mdec/boot ${MOUNT_POINT}/boot
installboot -v -r ${MOUNT_POINT} `cat vnd` \
${DESTDIR}/usr/mdec/biosboot ${MOUNT_POINT}/boot
install -c -m 555 -o root -g wheel bsd.rd ${MOUNT_POINT}/bsd
-# $OpenBSD: Makefile,v 1.10 2021/02/13 18:44:18 semarie Exp $
+# $OpenBSD: Makefile,v 1.11 2021/02/13 18:46:52 semarie Exp $
FS= floppy${OSrev}.img
FSSIZE= 2880
disklabel -w `cat vnd` ${FSDISKTYPE}
newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} /dev/r`cat vnd`a
mount /dev/`cat vnd`a ${MOUNT_POINT}
- cp ${DESTDIR}/usr/mdec/fdboot ${.OBJDIR}/boot
- strip -R .comment -R .SUNW_ctf ${.OBJDIR}/boot
+ objcopy -S -R .comment -R .SUNW_ctf ${DESTDIR}/usr/mdec/fdboot ${.OBJDIR}/boot
installboot -v -r ${MOUNT_POINT} `cat vnd` \
${DESTDIR}/usr/mdec/biosboot ${.OBJDIR}/boot
install -c -m 555 -o root -g wheel bsd.gz ${MOUNT_POINT}/bsd
MRMAKEFSARGS= -o disklabel=${MRDISKTYPE},minfree=0,density=4096
bsd.gz: bsd.rd
- cp bsd.rd bsd.strip
- strip -R .comment -R .SUNW_ctf bsd.strip
+ objcopy -S -R .comment -R .SUNW_ctf bsd.rd bsd.strip
gzip -9cn bsd.strip > bsd.gz
bsd.rd: mr.fs bsd
-# $OpenBSD: Makefile,v 1.19 2021/02/13 18:44:18 semarie Exp $
+# $OpenBSD: Makefile,v 1.20 2021/02/13 18:46:52 semarie Exp $
FS= miniroot${OSrev}.img
FSSIZE= 8064
disklabel -w `cat vnd` ${FSDISKTYPE}
newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} /dev/r`cat vnd`a
mount /dev/`cat vnd`a ${MOUNT_POINT}
- cp ${DESTDIR}/usr/mdec/boot ${.OBJDIR}/boot
- strip -R .comment -R .SUNW_ctf ${.OBJDIR}/boot
+ objcopy -S -R .comment -R .SUNW_ctf ${DESTDIR}/usr/mdec/boot ${.OBJDIR}/boot
installboot -v -r ${MOUNT_POINT} `cat vnd` \
${DESTDIR}/usr/mdec/biosboot ${.OBJDIR}/boot
install -c -m 555 -o root -g wheel bsd.gz ${MOUNT_POINT}/bsd
MRMAKEFSARGS= -o disklabel=${MRDISKTYPE},minfree=0,density=4096
bsd.gz: bsd.rd
- cp bsd.rd bsd.strip
- strip -R .comment -R .SUNW_ctf bsd.strip
+ objcopy -S -R .comment -R .SUNW_ctf bsd.rd bsd.strip
gzip -9cn bsd.strip > bsd.gz
bsd.rd: mr.fs bsd
-# $OpenBSD: Makefile,v 1.28 2021/02/13 18:44:18 semarie Exp $
+# $OpenBSD: Makefile,v 1.29 2021/02/13 18:46:52 semarie Exp $
FS= miniroot${OSrev}.img
FSSIZE= 18432
${.OBJDIR}/cd-dir
bsd.strip: bsd.rd
- cp bsd.rd bsd.strip
- strip -R .comment -R .SUNW_ctf bsd.strip
+ objcopy -S -R .comment -R .SUNW_ctf bsd.rd bsd.strip
bsd.rd: mr.fs bsd
cp bsd bsd.rd
-# $OpenBSD: list2sh.awk,v 1.22 2019/04/30 17:46:04 deraadt Exp $
+# $OpenBSD: list2sh.awk,v 1.23 2021/02/13 18:46:52 semarie Exp $
BEGIN {
printf("cd ${OBJDIR}\n");
$1 == "STRIP" {
printf("echo '%s'\n", $0);
printf("test -f ${TARGDIR}/%s && rm -fr ${TARGDIR}/%s\n", $3, $3);
- printf("cp %s ${TARGDIR}/%s\n", $2, $3);
- printf("strip ${TARGDIR}/%s\n", $3);
+ printf("objcopy -S %s ${TARGDIR}/%s\n", $2, $3);
next;
}
$1 == "LINK" {
-# $OpenBSD: Makefile,v 1.51 2020/05/18 06:20:44 otto Exp $
+# $OpenBSD: Makefile,v 1.52 2021/02/13 18:46:52 semarie Exp $
FS= floppy${OSrev}.img
FSSIZE= 2880
rm -f vnd
bsd.gz: bsd.rd
- cp bsd.rd bsd.strip
- strip -R .SUNW_ctf bsd.strip
+ objcopy -S -R .SUNW_ctf bsd.rd bsd.strip
gzip -9cn bsd.strip > bsd.gz
bsd.rd: mr.fs bsd
-# $OpenBSD: Makefile,v 1.47 2020/12/31 17:18:39 deraadt Exp $
+# $OpenBSD: Makefile,v 1.48 2021/02/13 18:46:52 semarie Exp $
FS= floppyB${OSrev}.img
FSSIZE= 2880
rm -f vnd
bsd.gz: bsd.rd
- cp bsd.rd bsd.strip
- strip -R .SUNW_ctf bsd.strip
+ objcopy -S -R .SUNW_ctf bsd.rd bsd.strip
gzip -9cn bsd.strip > bsd.gz
bsd.rd: mr.fs bsd