distrib: arm64: avoid customization in mr.fs target
authorsemarie <semarie@openbsd.org>
Mon, 15 Feb 2021 07:06:03 +0000 (07:06 +0000)
committersemarie <semarie@openbsd.org>
Mon, 15 Feb 2021 07:06:03 +0000 (07:06 +0000)
arm64 ramdisk has customization in mr.fs target, in order to create
usr/mdec/pine64 and usr/mdec/rpi directories (files will be copied
inside them by runlist.sh).

uses MKDIR directive to create these directories instead of.

it put back mr.fs target identical to others archs.

ok deraadt@

distrib/arm64/ramdisk/Makefile
distrib/arm64/ramdisk/list

index 04b89cb..7d398fd 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.20 2020/05/18 06:20:43 otto Exp $
+#      $OpenBSD: Makefile,v 1.21 2021/02/15 07:06:03 semarie Exp $
 
 FS=            miniroot${OSrev}.img
 FSSIZE=                67584
@@ -24,10 +24,6 @@ UTILS=               ${.CURDIR}/../../miniroot
 MRFSDISKTYPE=  rdroot
 MRMAKEFSARGS=  -o disklabel=${MRFSDISKTYPE},minfree=0,density=4096
 
-DIRS=\
-       pine64 \
-       rpi
-
 PIFILES=\
        bootcode.bin \
        start.elf \
@@ -85,9 +81,6 @@ bsd:
 mr.fs: instbin
        rm -rf $@.d
        install -d -o root -g wheel $@.d
-.for DIR in ${DIRS}
-       mkdir -p $@.d/usr/mdec/${DIR}
-.endfor
        mtree -def ${MTREE} -p $@.d -u
        CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} OSrev=${OSrev} \
            TARGDIR=$@.d UTILS=${UTILS} RELEASEDIR=${RELEASEDIR} \
index 6e7a370..b849309 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: list,v 1.12 2019/11/17 06:03:39 jsg Exp $
+#      $OpenBSD: list,v 1.13 2021/02/15 07:06:03 semarie Exp $
 
 SRCDIRS distrib/special
 
@@ -91,6 +91,7 @@ COPY  ${DESTDIR}/etc/firmware/atu-rfmd2958-int etc/firmware/atu-rfmd2958-int
 COPY   ${DESTDIR}/etc/firmware/atu-rfmd2958smc-ext etc/firmware/atu-rfmd2958smc-ext
 COPY   ${DESTDIR}/etc/firmware/atu-rfmd2958smc-int etc/firmware/atu-rfmd2958smc-int
 
+MKDIR  usr/mdec/rpi
 COPY   /usr/local/share/raspberrypi-firmware/boot/bcm2710-rpi-3-b.dtb usr/mdec/rpi/bcm2710-rpi-3-b.dtb
 COPY   /usr/local/share/raspberrypi-firmware/boot/bcm2710-rpi-3-b-plus.dtb usr/mdec/rpi/bcm2710-rpi-3-b-plus.dtb
 COPY   /usr/local/share/raspberrypi-firmware/boot/bcm2710-rpi-cm3.dtb usr/mdec/rpi/bcm2710-rpi-cm3.dtb
@@ -100,6 +101,7 @@ COPY        /usr/local/share/raspberrypi-firmware/boot/fixup.dat usr/mdec/rpi/fixup.dat
 COPY   /usr/local/share/raspberrypi-firmware/boot/overlays/disable-bt.dtbo usr/mdec/rpi/disable-bt.dtbo
 COPY   /usr/local/share/u-boot/rpi_3/u-boot.bin usr/mdec/rpi/u-boot.bin
 
+MKDIR  usr/mdec/pine64
 COPY   /usr/local/share/u-boot/pine64_plus/u-boot-sunxi-with-spl.bin usr/mdec/pine64/u-boot-sunxi-with-spl.bin
 
 # copy the MAKEDEV script and make some devices