Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pkgbuilds/alsa-ucm-conf-aurora/.omarchy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"source": "local",
"channels": [
"edge"
],
"sync": false
}
21 changes: 21 additions & 0 deletions pkgbuilds/alsa-ucm-conf-aurora/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pkgname=alsa-ucm-conf-aurora
pkgver=10.aurora2
pkgrel=1
pkgdesc='Aurora Apple Silicon ALSA profiles including J700'
arch=('any')
groups=('omarchy-platform-apple-silicon')
url='https://github.com/aurora-silicon/alsa-ucm-conf-asahi'
license=('BSD-3-Clause')
_commit=e55107ad9ba220a2772dbe4d55438cd1ec669288
makedepends=('git')
depends=('alsa-ucm-conf')
provides=("alsa-ucm-conf-asahi=$pkgver" "alsa-ucm-conf-asahi-aurora=$pkgver")
conflicts=('alsa-ucm-conf-asahi' 'alsa-ucm-conf-asahi-aurora')
replaces=('alsa-ucm-conf-asahi-aurora')
source=("ucm::git+$url.git#commit=$_commit")
sha256sums=('SKIP')
package() {
install -d "$pkgdir/usr/share/alsa"
cp -a ucm/ucm2 "$pkgdir/usr/share/alsa/"
install -Dm644 ucm/LICENSE.asahi "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
7 changes: 7 additions & 0 deletions pkgbuilds/aura/.omarchy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"source": "local",
"channels": [
"edge"
],
"sync": false
}
43 changes: 43 additions & 0 deletions pkgbuilds/aura/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Aurora bootloader; ordinary updates refresh ESP Stage 2, never enroll Stage 1.
pkgname=aura
pkgver=0.1.0.r20261014
pkgrel=1
pkgdesc='Aurora Silicon bootloader for Apple Silicon'
arch=('aarch64')
groups=('omarchy-platform-apple-silicon')
url='https://github.com/aurora-silicon/aura'
license=('MIT' 'GPL-2.0-only')
_commit=c4331a90ef324eab33d34d1515d7e42748a293ab
_compat=1.6.1.aurora19
provides=("m1n1=$_compat" "m1n1-aurora=$_compat" "m1n1-neo=$_compat")
conflicts=('m1n1' 'm1n1-aurora' 'm1n1-neo')
replaces=('m1n1-neo')
depends=('asahi-scripts>=20260127.1' 'uboot-aurora')
makedepends=('git' 'clang' 'lld' 'llvm' 'rustup' 'make' 'python')
options=('!strip' '!debug')
source=("aura::git+$url.git#commit=$_commit")
sha256sums=('SKIP')
prepare() {
rustup toolchain install 1.85.0 --profile minimal --target aarch64-unknown-none-softfloat
[[ $(git -C aura rev-parse HEAD) == "$_commit" ]]
}
build() {
cd aura
export RUSTUP_TOOLCHAIN=1.85.0
make clean
make -j"${OMARCHY_BUILD_JOBS:-10}" RELEASE=1 CHAINLOADING=1 USE_CLANG=1 BUILTIN_LOGO=aurora
install -Dm644 build/aura.bin "$srcdir/stage1/aura-raw.bin"
install -Dm644 build/aura.macho "$srcdir/stage1/aura.macho"
make clean
make -j"${OMARCHY_BUILD_JOBS:-10}" RELEASE=1 CHAINLOADING=1 ESP_STAGE2=1 USE_CLANG=1 BUILTIN_LOGO=aurora
}
package() {
install -Dm644 aura/build/aura.bin "$pkgdir/usr/lib/asahi-boot/m1n1.bin"
install -d "$pkgdir/usr/lib/m1n1-neo"
ln -s ../asahi-boot/m1n1.bin "$pkgdir/usr/lib/m1n1-neo/m1n1.bin"
install -Dm644 stage1/aura-raw.bin "$pkgdir/usr/share/aura/stage1/aura-raw.bin"
install -Dm644 stage1/aura.macho "$pkgdir/usr/share/aura/stage1/aura.macho"
install -Dm644 aura/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -m644 aura/3rdparty_licenses/* "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 "$startdir/build-qualification.json" "$pkgdir/usr/share/doc/aura/build-qualification.json"
}
6 changes: 6 additions & 0 deletions pkgbuilds/aura/build-qualification.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"source_commit": "c4331a90ef324eab33d34d1515d7e42748a293ab",
"hardware_tested": false,
"stage1_auto_enrollment": false,
"publication_gate": "native build, matched Stage1/Stage2 Neo boot, repair and upgrade qualification"
}
7 changes: 7 additions & 0 deletions pkgbuilds/aurora-audio/.omarchy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"source": "local",
"channels": [
"edge"
],
"sync": false
}
21 changes: 21 additions & 0 deletions pkgbuilds/aurora-audio/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pkgname=aurora-audio
pkgver=4.1.aurora2
pkgrel=1
pkgdesc='Aurora Apple Silicon PipeWire/WirePlumber DSP profiles including J700'
arch=('any')
groups=('omarchy-platform-apple-silicon')
url='https://github.com/aurora-silicon/asahi-audio'
license=('MIT')
_commit=b2da7512e9bfcd5837355d2393f3c43219acf6b9
makedepends=('git' 'make')
depends=('alsa-ucm-conf-aurora' 'pipewire-audio' 'wireplumber' 'bankstown'
'lsp-plugins-lv2' 'speakersafetyd' 'speakerguardd')
provides=("asahi-audio=$pkgver" "asahi-audio-aurora=$pkgver")
conflicts=('asahi-audio' 'asahi-audio-aurora')
replaces=('asahi-audio-aurora')
source=("asahi-audio::git+$url.git#commit=$_commit")
sha256sums=('SKIP')
package() {
make -C asahi-audio install DESTDIR="$pkgdir" PREFIX=/usr
install -Dm644 asahi-audio/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
7 changes: 7 additions & 0 deletions pkgbuilds/aurora-bless/.omarchy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"source": "local",
"channels": [
"edge"
],
"sync": false
}
29 changes: 29 additions & 0 deletions pkgbuilds/aurora-bless/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pkgname=aurora-bless
pkgver=0.4.4.aurora2
pkgrel=1
pkgdesc='Aurora Apple Silicon startup-volume selector with Neo NVRAM support'
arch=('aarch64')
groups=('omarchy-platform-apple-silicon')
url='https://github.com/aurora-silicon/aurora-bless'
license=('MIT')
_commit=727b5895db67bd40aa66c41485c6a8f482d2a917
provides=("asahi-bless=$pkgver")
conflicts=('asahi-bless')
makedepends=('git' 'rust' 'cargo')
source=("aurora-bless::git+$url.git#commit=$_commit")
sha256sums=('SKIP')
build() {
cd aurora-bless
cargo build --locked --release -p asahi-bless ${CARGO_TARGET:+--target "$CARGO_TARGET"}
}
check() {
cd aurora-bless
cargo test --locked -p asahi-bless -p apple-nvram -p asahi-nvram
}
package() {
local bin=aurora-bless/target/release/asahi-bless
if [[ -n ${CARGO_TARGET:-} ]]; then bin=aurora-bless/target/$CARGO_TARGET/release/asahi-bless; fi
install -Dm755 "$bin" "$pkgdir/usr/bin/aurora-bless"
ln -s aurora-bless "$pkgdir/usr/bin/asahi-bless"
install -Dm644 aurora-bless/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
6 changes: 4 additions & 2 deletions pkgbuilds/linux-aurora/.omarchy/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"source": "local",
"skip_build": true,
"channels": ["edge"]
"channels": [
"edge"
],
"sync": false
}
66 changes: 42 additions & 24 deletions pkgbuilds/linux-aurora/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,38 @@
# cold-boot qualification on M1 and M2.

_auroraver=7.1.12
_aurorarel=2
pkgrel=11
_aurorarel=5
pkgrel=1

# Immutable pin on aurora-silicon/linux (branch aurora-wip). Every bump is a
# PR that moves _commit and the archive checksum; the pinned commit is cold-boot
# qualified on MacBook Pro 14" M1 Pro (j314s) and 16" M2 Max (j416c) first.
_commit=2439016d2e8d3a0d8aebcd243f29604a91f201c9

# PR that moves _commit; its cold-boot qualification is recorded in
# docs/aurora-edge.md before channel publication. 5f6c917 merges #301, which
# leaves the firmware-owned J700 DISP_CPU domain alone: without it the Neo
# does not boot.
_commit=5f6c917f2c824b3c87497e8bd7dd92a6de0efe60

# Any m1n1 1.6.1 loads these device trees. The Neo's own Stage 2 comes from the
# image, so the floor stays where M1 and M2 users' m1n1-aurora already meets it.
_m1n1_version=1.6.1

pkgbase=linux-aurora
_srcname=linux-${_commit}
_srcname=linux
_kernelname=${pkgbase#linux}
_desc="AArch64 Apple Silicon (Aurora kernel)"
pkgver="${_auroraver}.aurora${_aurorarel}"
arch=('aarch64')
groups=('omarchy-platform-apple-silicon')
url="https://github.com/aurora-silicon/linux"
license=('GPL2')

makedepends=(
base-devel bc dtc kmod libelf pahole cpio perl rustup rust-bindgen tar xz xmlto python
base-devel bc dtc kmod libelf pahole cpio perl rustup clang llvm lld clang18 llvm18 lld18
tar xz xmlto python git patch
)
options=('!strip')
source=(
https://github.com/aurora-silicon/linux/archive/${_commit}.tar.gz
config # the main kernel config file
rust-toolchain.toml
)
sha256sums=('6347354537148120fc5448afcb8671a558ce336f731c70690cd88062a903f84d'
'e8f3818e6bfa70166dd5caff228a0becfdd5d4f0165b589efa38150fd0b59cc9'
'2a95563bb9f5b216cc3c170a17e9471448bc63a7084bdd67df23d074939b366c')
source=("linux::git+https://github.com/aurora-silicon/linux.git#commit=${_commit}"
rust-toolchain.toml bindgen-kernel.py)
sha256sums=('SKIP' '443a9c4613172ea352f49b114818a1d75ab048ec4bd2d75b388a7ab3a8a1f046' '84a03d5fea19cae243c89f50c1736c639622d25d4d1de8d7d53ebd8f603c0f62')

# Kbuild takes ARCH literally and knows arm64, not aarch64.
export ARCH=arm64
Expand All @@ -65,22 +66,39 @@ prepare() {
echo "Pinning the Rust toolchain..."
cp ../rust-toolchain.toml .

echo "Creating build directories..."
# ALARM's clang18, llvm18 and lld18 install their tools under this prefix only.
export LLVM="${AURORA_LLVM:-/usr/lib/llvm18/bin/}"
local clang_command="clang${LLVM}"
[[ $LLVM != */ ]] || clang_command="${LLVM}clang"
"$clang_command" --version | head -1 | grep -Eq 'clang version 18\.' || {
echo 'linux-aurora requires the qualified LLVM 18 build environment' >&2; return 1;
}
rustup toolchain install 1.99.0 --profile minimal
RUSTUP_TOOLCHAIN=1.99.0 python3 tools/aurora-bindgen/build.py --output-dir "$srcdir/private-bindgen"
export AURORA_BINDGEN_REAL="$srcdir/private-bindgen/rust-bindgen-0.73.2/target/release/bindgen"
export BINDGEN="$srcdir/bindgen-kernel.py"
export RUSTUP_TOOLCHAIN=1.85.0
rustup toolchain install 1.85.0 --profile minimal --component rust-src
mkdir -p build/base

echo "Setting config (base)..."
cp ../config build/base/.config
make olddefconfig prepare O=$PWD/build/base
diff -u ../config build/base/.config || :
make -s kernelrelease O=$PWD/build/base > build/base/version
make O="$PWD/build/base" defconfig
scripts/kconfig/merge_config.sh -m -O "$PWD/build/base" build/base/.config arch/arm64/configs/asahi.config
make O="$PWD/build/base" olddefconfig
scripts/kconfig/merge_config.sh -m -O "$PWD/build/base" build/base/.config arch/arm64/configs/j700-radio.config arch/arm64/configs/j700.config
make O="$PWD/build/base" olddefconfig
scripts/kconfig/merge_config.sh -m -O "$PWD/build/base" build/base/.config arch/arm64/configs/j700-device-parity.config
make O="$PWD/build/base" olddefconfig prepare
make -s O="$PWD/build/base" kernelrelease > build/base/version

echo "Prepared $pkgbase version $(<build/base/version)"
}

build() {
cd $_srcname
echo "Building base..."
make all O=$PWD/build/base -j $(nproc)
export LLVM="${AURORA_LLVM:-/usr/lib/llvm18/bin/}" RUSTUP_TOOLCHAIN=1.85.0
export AURORA_BINDGEN_REAL="$srcdir/private-bindgen/rust-bindgen-0.73.2/target/release/bindgen"
export BINDGEN="$srcdir/bindgen-kernel.py"
make O="$PWD/build/base" -j"${OMARCHY_BUILD_JOBS:-10}" Image modules dtbs
}

_package_kernel() {
Expand Down
25 changes: 25 additions & 0 deletions pkgbuilds/linux-aurora/bindgen-kernel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env python3
"""Adapt one unsupported generated lint to Rust 1.85; retain layout assertions."""
import os
from pathlib import Path
import subprocess
import sys

args = sys.argv[1:]
result = subprocess.run([os.environ["AURORA_BINDGEN_REAL"], *args], stdout=subprocess.PIPE)
if result.returncode:
sys.stdout.buffer.write(result.stdout)
raise SystemExit(result.returncode)
output = None
for index, value in enumerate(args):
if value in ("-o", "--output"):
output = Path(args[index + 1])
elif value.startswith("--output="):
output = Path(value.split("=", 1)[1])
attribute = b"#[allow(unnecessary_transmutes)]\n"
if output is None:
sys.stdout.buffer.write(result.stdout.replace(attribute, b""))
else:
original = output.read_bytes()
output.write_bytes(original.replace(attribute, b""))
sys.stdout.buffer.write(result.stdout)
3 changes: 1 addition & 2 deletions pkgbuilds/linux-aurora/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[toolchain]
channel = "1.93.1"
channel = "1.85.0"
components = ["rustc", "cargo", "rust-src"]
targets = ["aarch64-unknown-linux-gnu"]
10 changes: 10 additions & 0 deletions pkgbuilds/mesa-aurora/.omarchy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"source": "local",
"channels": [
"edge"
],
"sync": false,
"rebuild_on": [
"libdisplay-info"
]
}
82 changes: 82 additions & 0 deletions pkgbuilds/mesa-aurora/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
pkgbase=mesa-aurora
pkgname=('mesa-aurora' 'vulkan-aurora')
epoch=1
pkgver=26.3.0_devel.r932.a0bcbcb28528
pkgrel=1
pkgdesc='Aurora Asahi Gallium, Zink and Honeykrisp'
arch=('aarch64')
groups=('omarchy-platform-apple-silicon')
url='https://github.com/aurora-silicon/mesa'
license=('MIT')
_commit=a0bcbcb2852845ecac9731999fc165a7f7cd9b8f
# The drivers link neither LLVM nor SPIRV-Tools. Arch Linux ARM moves both
# (llvm-libs changes soname every major, SPIRV-Tools has no versioned soname),
# and a Mesa linked to the old ones leaves the Neo without a GPU until this
# package is rebuilt. Asahi needs LLVM only to precompile its CL shaders, so a
# first build makes those compilers and the packaged one uses them.
makedepends=('git' 'meson' 'ninja' 'python-mako' 'python-yaml' 'python-packaging' 'rust'
'rust-bindgen' 'clang' 'llvm' 'libclc' 'spirv-llvm-translator' 'spirv-tools'
'cbindgen' 'glslang' 'libdrm' 'expat' 'libglvnd'
'libx11' 'libxcb' 'libxext' 'libxfixes' 'libxrandr' 'libxshmfence' 'libxxf86vm'
'wayland' 'wayland-protocols' 'vulkan-headers' 'libdisplay-info'
'lm_sensors' 'zlib' 'zstd' 'xcb-util-keysyms')
source=("mesa::git+$url.git#commit=$_commit")
sha256sums=('SKIP')
options=('!debug')
_options=(-Dplatforms=x11,wayland
-Dgallium-drivers=asahi,zink,softpipe -Dvulkan-drivers=asahi
-Degl=enabled -Dgbm=enabled -Dglx=dri -Dgles1=enabled -Dgles2=enabled
-Dglvnd=enabled -Dvideo-codecs=all -Dvulkan-layers=
-Dexpat=enabled -Dzstd=enabled -Dlmsensors=enabled -Dlibunwind=disabled -Dvalgrind=disabled)
# arch-meson's flags without --auto-features enabled, which would require
# features this driver set cannot have, such as the VA front end.
_meson() {
meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain \
--wrap-mode nodownload -Db_pie=true -Db_ndebug=true -Dpython.bytecompile=1 "$@"
}
build() {
_meson mesa tools "${_options[@]}" -Dllvm=enabled -Dbuild-tests=false
ninja -C tools -j "${OMARCHY_BUILD_JOBS:-10}" \
src/compiler/clc/mesa_clc src/compiler/spirv/vtn_bindgen2 src/asahi/clc/asahi_clc
printf '%s\n' '[binaries]' \
"mesa_clc = '$srcdir/tools/src/compiler/clc/mesa_clc'" \
"vtn_bindgen2 = '$srcdir/tools/src/compiler/spirv/vtn_bindgen2'" \
"asahi_clc = '$srcdir/tools/src/asahi/clc/asahi_clc'" > tools.ini

_meson mesa build "${_options[@]}" --native-file tools.ini \
-Dllvm=disabled -Dspirv-tools=disabled -Dmesa-clc=system -Dprecomp-compiler=system \
-Dbuild-tests=false
meson compile -C build -j "${OMARCHY_BUILD_JOBS:-10}"
DESTDIR="$srcdir/mesa-stage" meson install -C build --no-rebuild
}
check() {
# Mesa's own tests stay off: at this commit hk_sampler_bias_test undefines
# NDEBUG and calls nir_validate_shader, so it links only in debug builds.
# Nothing packaged may follow the system's LLVM or SPIRV-Tools.
! find "$srcdir/mesa-stage" -name '*.so*' -type f -exec readelf -d {} + |
grep -E 'NEEDED.*(libLLVM|libSPIRV-Tools)'
}
package_mesa-aurora() {
pkgdesc='Aurora native Asahi Gallium and Zink OpenGL drivers'
depends=('expat' 'glibc' 'gcc-libs' 'libdrm' 'libglvnd' 'libx11' 'libxcb' 'libxext'
'libxshmfence' 'libxxf86vm' 'lm_sensors' 'wayland' 'zlib' 'zstd')
provides=("mesa=$epoch:$pkgver" 'mesa-libgl' 'opengl-driver' 'libgbm.so')
conflicts=('mesa')
cp -a "$srcdir/mesa-stage/usr" "$pkgdir/"
rm "$pkgdir/usr/lib/libvulkan_asahi.so"
rm "$pkgdir"/usr/share/vulkan/icd.d/*asahi*.json
rmdir "$pkgdir/usr/share/vulkan/icd.d" "$pkgdir/usr/share/vulkan" 2>/dev/null || true

}
package_vulkan-aurora() {
pkgdesc='Aurora Honeykrisp Vulkan driver'
depends=('expat' 'glibc' 'gcc-libs' 'libdrm' 'libdisplay-info' 'libx11' 'libxcb'
'libxshmfence' 'systemd-libs' 'vulkan-icd-loader' 'wayland'
'xcb-util-keysyms' 'zlib' 'zstd')
provides=("vulkan-asahi=$epoch:$pkgver" "vulkan-asahi-aurora=$epoch:$pkgver" 'vulkan-driver')
conflicts=('vulkan-asahi' 'vulkan-asahi-aurora')
replaces=('vulkan-asahi-aurora')
install -Dm755 "$srcdir/mesa-stage/usr/lib/libvulkan_asahi.so" "$pkgdir/usr/lib/libvulkan_asahi.so"
install -d "$pkgdir/usr/share/vulkan/icd.d"
cp -a "$srcdir"/mesa-stage/usr/share/vulkan/icd.d/*asahi*.json "$pkgdir/usr/share/vulkan/icd.d/"
}
Loading