Skip to content

Commit

Permalink
New package: asahi-base
Browse files Browse the repository at this point in the history
  • Loading branch information
claris authored and dkwo committed Oct 27, 2022
1 parent 079293f commit d3e9efb
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions srcpkgs/asahi-base/files/default-update-m1n1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DTBS="/usr/lib/asahi-boot/dtb/*.dtb"

26 changes: 26 additions & 0 deletions srcpkgs/asahi-base/files/dracut-asahi.conf
Original file line number Diff line number Diff line change
@@ -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 "
16 changes: 16 additions & 0 deletions srcpkgs/asahi-base/template
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
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
}

0 comments on commit d3e9efb

Please sign in to comment.