diff --git a/srcpkgs/asahi-base/files/default-update-m1n1 b/srcpkgs/asahi-base/files/default-update-m1n1 new file mode 100644 index 00000000000000..be2171b20bd9e3 --- /dev/null +++ b/srcpkgs/asahi-base/files/default-update-m1n1 @@ -0,0 +1,2 @@ +DTBS="/usr/lib/asahi-boot/dtb/*.dtb" + diff --git a/srcpkgs/asahi-base/files/dracut-asahi.conf b/srcpkgs/asahi-base/files/dracut-asahi.conf new file mode 100644 index 00000000000000..0b64a92d79d511 --- /dev/null +++ b/srcpkgs/asahi-base/files/dracut-asahi.conf @@ -0,0 +1,26 @@ +# This conf adds modules necessary for using Linux on Apple Silicon Macs, +# which are not otherwise included due to being soft dependencies. + +# For NVMe & SMC that are builtin with current config +#add_drivers+=" apple-mailbox " + +# For NVMe +add_drivers+=" nvme_apple " + +# For USB and HID +add_drivers+=" pinctrl-apple-gpio " + +# For USB +add_drivers+=" i2c-apple tps6598x apple-dart dwc3 dwc3-of-simple xhci-pci pcie-apple " + +# For HID +add_drivers+=" spi-apple spi-hid-apple spi-hid-apple-of " + +# For RTC +add_drivers+=" rtc-macsmc simple-mfd-spmi spmi-apple-controller nvmem_spmi_mfd " + +# SMC drivers that are builtins with current config +#add_drivers+=" macsmc macsmc-rtkit gpio_macsmc " + +# For MTP HID +add_drivers+=" apple-dockchannel dockchannel-hid apple-rtkit-helper " diff --git a/srcpkgs/asahi-base/template b/srcpkgs/asahi-base/template new file mode 100644 index 00000000000000..5fb5a76185e632 --- /dev/null +++ b/srcpkgs/asahi-base/template @@ -0,0 +1,16 @@ +# Template file for 'asahi-base' +pkgname=asahi-base +version=20221024 +revision=1 +archs="aarch64*" +build_style=meta +depends="linux-asahi asahi-uboot asahi-scripts m1n1 dracut" +short_desc="Void Linux Apple Silicon support package" +maintainer="Will Springer " +license="Public Domain" +homepage="http://asahilinux.org" + +do_install() { + vinstall "$FILESDIR/dracut-asahi.conf" 644 usr/lib/dracut/dracut.conf.d 10-asahi.conf + vinstall "$FILESDIR/default-update-m1n1" 644 etc/default update-m1n1 +}