From 71b18407c1401e9300aedb1afe1d6f47e76518cf Mon Sep 17 00:00:00 2001 From: Sebastien Marie Date: Sun, 14 Feb 2021 17:11:03 +0000 Subject: distrib: use ${MACHINE} instead of hardcoded value ok deraadt@ --- distrib/amd64/ramdisk_cd/Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'distrib/amd64/ramdisk_cd') diff --git a/distrib/amd64/ramdisk_cd/Makefile b/distrib/amd64/ramdisk_cd/Makefile index ba206c042f3..591a12b09b7 100644 --- a/distrib/amd64/ramdisk_cd/Makefile +++ b/distrib/amd64/ramdisk_cd/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.28 2021/02/13 18:52:08 semarie Exp $ +# $OpenBSD: Makefile,v 1.29 2021/02/14 17:11:02 semarie Exp $ FS= miniroot${OSrev}.img FSSIZE= 9920 @@ -38,18 +38,18 @@ ${FS}: bsd.gz ${CDROM}: bsd.rd rm -rf ${.OBJDIR}/cd-dir - mkdir -p ${.OBJDIR}/cd-dir/${OSREV}/amd64 + mkdir -p ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE} mkdir -p ${.OBJDIR}/cd-dir/etc - echo "set image /${OSREV}/amd64/bsd.rd" > ${.OBJDIR}/cd-dir/etc/boot.conf - cp ${.OBJDIR}/bsd.rd ${.OBJDIR}/cd-dir/${OSREV}/amd64 - cp ${DESTDIR}/usr/mdec/cdbr ${.OBJDIR}/cd-dir/${OSREV}/amd64 - cp ${DESTDIR}/usr/mdec/cdboot ${.OBJDIR}/cd-dir/${OSREV}/amd64/cdboot + echo "set image /${OSREV}/${MACHINE}/bsd.rd" > ${.OBJDIR}/cd-dir/etc/boot.conf + cp ${.OBJDIR}/bsd.rd ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE} + cp ${DESTDIR}/usr/mdec/cdbr ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE} + cp ${DESTDIR}/usr/mdec/cdboot ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}/cdboot mkhybrid -a -R -T -L -l -d -D -N -o ${.OBJDIR}/${CDROM} \ - -A "OpenBSD ${OSREV} amd64 bootonly CD" \ + -A "OpenBSD ${OSREV} ${MACHINE} bootonly CD" \ -P "Copyright (c) `date +%Y` Theo de Raadt, The OpenBSD project" \ -p "Theo de Raadt " \ - -V "OpenBSD/amd64 ${OSREV} boot-only CD" \ - -b ${OSREV}/amd64/cdbr -c ${OSREV}/amd64/boot.catalog \ + -V "OpenBSD/${MACHINE} ${OSREV} boot-only CD" \ + -b ${OSREV}/${MACHINE}/cdbr -c ${OSREV}/${MACHINE}/boot.catalog \ ${.OBJDIR}/cd-dir MRDISKTYPE= rdrootb -- cgit v1.2.3