summaryrefslogtreecommitdiff
path: root/distrib/arm64
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2023-03-26 19:25:17 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2023-03-26 19:25:17 +0000
commitaca7c6d2eca00f4e16463c222f1f4dfc329ba0c0 (patch)
tree6f065e29323a2579682c3817323de6cb3b9a1923 /distrib/arm64
parent57c5e8cdc9436f7f508b963061092911e175c3e5 (diff)
Simplify apple firmware copying
Less duplicate code, easier to add new firmware. OK afresh1
Diffstat (limited to 'distrib/arm64')
-rw-r--r--distrib/arm64/ramdisk/install.md13
1 files changed, 4 insertions, 9 deletions
diff --git a/distrib/arm64/ramdisk/install.md b/distrib/arm64/ramdisk/install.md
index 742907fa2c2..46c747f2798 100644
--- a/distrib/arm64/ramdisk/install.md
+++ b/distrib/arm64/ramdisk/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.37 2023/03/25 18:29:37 kn Exp $
+# $OpenBSD: install.md,v 1.38 2023/03/26 19:25:16 kn Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -55,14 +55,9 @@ md_installboot() {
case $_plat in
apple)
- if [[ -d /etc/firmware/apple ]]; then
- (cd /etc/firmware
- pax -rw apple /mnt/etc/firmware)
- fi
- if [[ -d /etc/firmware/apple-bwfm ]]; then
- (cd /etc/firmware
- pax -rw apple-bwfm /mnt/etc/firmware)
- fi
+ (cd /etc/firmware; for _dir in apple{,-bwfm}; do
+ [[ -d $_dir ]] && pax -rw $_dir /mnt/etc/firmware
+ done)
;;
pine64)
dd if=$_mdec/u-boot-sunxi-with-spl.bin of=${_disk}c \