@@ -19,7 +19,7 @@ usage() {
1919 Adds void-installer and other helpful utilities to the generated images.
2020
2121 OPTIONS
22- -a <arch> Set XBPS_ARCH in the image
22+ -a <arch> Set architecture (or platform) in the image
2323 -b <variant> One of base, enlightenment, xfce, mate, cinnamon, gnome, kde,
2424 lxde, or lxqt (default: base). May be specified multiple times
2525 to build multiple variants
@@ -71,6 +71,12 @@ include_installer() {
7171
7272setup_pipewire () {
7373 PKGS=" $PKGS pipewire alsa-pipewire"
74+ case " $ARCH " in
75+ asahi* )
76+ PKGS=" $PKGS asahi-audio"
77+ SERVICES=" $SERVICES speakersafetyd"
78+ ;;
79+ esac
7480 mkdir -p " $INCLUDEDIR " /etc/xdg/autostart
7581 ln -sf /usr/share/applications/pipewire.desktop " $INCLUDEDIR " /etc/xdg/autostart/
7682 mkdir -p " $INCLUDEDIR " /etc/pipewire/pipewire.conf.d
@@ -91,13 +97,28 @@ build_variant() {
9197 # thus everyone should just do a chroot install anyways
9298 WANT_INSTALLER=no
9399 case " $ARCH " in
94- x86_64* |i686* ) GRUB_PKGS=" grub-i386-efi grub-x86_64-efi" ; WANT_INSTALLER=yes ;;
95- aarch64* ) GRUB_PKGS=" grub-arm64-efi" ;;
100+ x86_64* |i686* )
101+ GRUB_PKGS=" grub-i386-efi grub-x86_64-efi"
102+ GFX_PKGS=" xorg-video-drivers"
103+ WANT_INSTALLER=yes
104+ TARGET_ARCH=" $ARCH "
105+ ;;
106+ aarch64* )
107+ GRUB_PKGS=" grub-arm64-efi"
108+ GFX_PKGS=" xorg-video-drivers"
109+ TARGET_ARCH=" $ARCH "
110+ ;;
111+ asahi* )
112+ GRUB_PKGS=" asahi-base asahi-scripts grub-arm64-efi"
113+ GFX_PKGS=" mesa-asahi-dri"
114+ KERNEL_PKG=" linux-asahi"
115+ TARGET_ARCH=" aarch64${ARCH# asahi} "
116+ ;;
96117 esac
97118
98119 A11Y_PKGS=" espeakup void-live-audio brltty"
99120 PKGS=" dialog cryptsetup lvm2 mdadm void-docs-browse xtools-minimal xmirror chrony tmux $A11Y_PKGS $GRUB_PKGS "
100- XORG_PKGS=" xorg-minimal xorg-input-drivers xorg-video -drivers setxkbmap xauth font-misc-misc terminus-font dejavu-fonts-ttf orca"
121+ XORG_PKGS=" $GFX_PKGS xorg-minimal xorg-input-drivers setxkbmap xauth font-misc-misc terminus-font dejavu-fonts-ttf orca"
101122 SERVICES=" sshd chronyd"
102123
103124 LIGHTDM_SESSION=' '
171192 setup_pipewire
172193 fi
173194
174- ./mklive.sh -a " $ARCH " -o " $IMG " -p " $PKGS " -S " $SERVICES " -I " $INCLUDEDIR " ${REPO} " $@ "
195+ ./mklive.sh -a " $TARGET_ARCH " -o " $IMG " -p " $PKGS " -S " $SERVICES " -I " $INCLUDEDIR " \
196+ ${KERNEL_PKG: +-v $KERNEL_PKG } ${REPO} " $@ "
175197
176198 cleanup
177199}
0 commit comments