Skip to content

Commit 7f9a50e

Browse files
dkwoclassabbyamp
authored andcommitted
mkimage, mkplatformfs, lib: add asahi
1 parent 980b4c6 commit 7f9a50e

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

lib.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ set_target_arch_from_platform() {
288288
pinephone*) XBPS_TARGET_ARCH="aarch64";;
289289
rock64*) XBPS_TARGET_ARCH="aarch64";;
290290
rockpro64*) XBPS_TARGET_ARCH="aarch64";;
291+
asahi*) XBPS_TARGET_ARCH="aarch64";;
291292
*) die "$PROGNAME: Unable to compute target architecture from platform";;
292293
esac
293294

mkimage.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ PLATFORM="${PLATFORM%-PLATFORMFS*}"
116116

117117
# Be absolutely certain the platform is supported before continuing
118118
case "$PLATFORM" in
119-
rpi-armv6l|rpi-armv7l|rpi-aarch64|GCP|pinebookpro|pinephone|rock64|rockpro64|*-musl);;
119+
rpi-armv6l|rpi-armv7l|rpi-aarch64|GCP|pinebookpro|pinephone|rock64|rockpro64|asahi|*-musl);;
120120
*) die "The $PLATFORM is not supported, exiting..."
121121
esac
122122

@@ -350,6 +350,12 @@ GCP*)
350350
# run_cmd_chroot commands
351351
cleanup_chroot
352352
;;
353+
asahi*)
354+
mount_pseudofs
355+
run_cmd_chroot "${ROOTFS}" "grub-install --target=arm64-efi --efi-directory=/boot --removable"
356+
run_cmd_chroot "${ROOTFS}" "xbps-reconfigure -f linux-asahi"
357+
cleanup_chroot
358+
;;
353359
esac
354360

355361
# Release all the mounts, deconfigure the loop device, and remove the

mkplatformfs.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ usage() {
5353
5454
Supported platforms: i686, x86_64, GCP,
5555
rpi-armv6l, rpi-armv7l, rpi-aarch64,
56-
pinebookpro, pinephone, rock64, rockpro64
57-
56+
pinebookpro, pinephone, rock64, rockpro64, asahi
57+
5858
OPTIONS
5959
-b <system-pkg> Set an alternative base-system package (default: base-system)
6060
-c <cachedir> Set the XBPS cache directory (default: ./xbps-cachedir-<arch>)
@@ -128,6 +128,7 @@ case "$PLATFORM" in
128128
pinephone*) PKGS="$BASEPKG ${PLATFORM%-*}-base" ;;
129129
rock64*) PKGS="$BASEPKG ${PLATFORM%-*}-base" ;;
130130
rockpro64*) PKGS="$BASEPKG ${PLATFORM%-*}-base" ;;
131+
asahi*) PKGS="$BASEPKG asahi-base asahi-scripts grub-arm64-efi dracut" ;;
131132
*) die "$PROGNAME: invalid platform!";;
132133
esac
133134

0 commit comments

Comments
 (0)