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
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
python tests/oma-service-removal.py
python tests/passwordless-package-lifecycle.py
python tests/upstream-watch.py
runuser -u nobody -- python tests/aurora-edge/metadata.py
python tests/aurora-edge/review.py
python tests/aurora-edge/firmware.py
bash tests/ipu7-install.sh
bash tests/ipu7-headers.sh
./bin/sync-upstream self-test
Expand Down
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
}
44 changes: 44 additions & 0 deletions pkgbuilds/aura/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Aurora bootloader; ordinary updates refresh ESP Stage 2, never enroll Stage 1.
pkgname=aura
pkgver=0.1.0.r20261014
pkgrel=2
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" build-qualification.json validate-qualification.py)
sha256sums=('SKIP' 'cf7bd9fdda6ceff040c8daca13ed4e91de220a12433574c2a458be19e20b68d6' '623db7c1b25a2ce90821cca287ad60cde1d9844b6a8c56258235f11128e97697')
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() {
python "$srcdir/validate-qualification.py" "$srcdir/build-qualification.json" "$_commit"
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 "$srcdir/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"
}
24 changes: 24 additions & 0 deletions pkgbuilds/aura/validate-qualification.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env python3
"""Refuse installable Aura packages until the exact pin has boot/repair/upgrade evidence."""
import json
from pathlib import Path
import sys


def validate(record, commit):
if record.get('source_commit') != commit or record.get('hardware_tested') is not True:
raise ValueError('Aura publication blocked: the exact source pin is not hardware-qualified')
evidence = record.get('evidence', {})
for gate in ('native_build', 'matched_stage1_stage2_boot', 'repair', 'upgrade'):
item = evidence.get(gate, {})
if item.get('passed') is not True or not isinstance(item.get('report'), str) or not item['report'].strip():
raise ValueError('Aura publication blocked: missing passing evidence for ' + gate)
if record.get('stage1_auto_enrollment') is not False:
raise ValueError('Aura package updates must not enroll Stage 1 automatically')


if __name__ == '__main__':
try:
validate(json.loads(Path(sys.argv[1]).read_text()), sys.argv[2])
except (OSError, ValueError, KeyError, IndexError) as error:
raise SystemExit(str(error)) from error
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
}
83 changes: 57 additions & 26 deletions pkgbuilds/linux-aurora/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,55 @@
# cold-boot qualification on M1 and M2.

_auroraver=7.1.12
_aurorarel=2
pkgrel=11
_aurorarel=6
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
# the PR's attached qualification evidence before channel publication.
# 3abf4a56 fast-forwards 5f6c917, which merged #301: that leaves the
# firmware-owned J700 DISP_CPU domain alone, and without it the Neo does not
# boot. It also carries the DWC3 export (#321), so no source patch is needed.
_commit=3abf4a56b59e323026f9a6e2fe9a0d4307c251d5

# 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 config neo.config)
sha256sums=('SKIP' '443a9c4613172ea352f49b114818a1d75ab048ec4bd2d75b388a7ab3a8a1f046' '84a03d5fea19cae243c89f50c1736c639622d25d4d1de8d7d53ebd8f603c0f62' 'e8f3818e6bfa70166dd5caff228a0becfdd5d4f0165b589efa38150fd0b59cc9' '50e611aef167b6e18f21320701ac12e807343e237a47fd5534587fc5068433dd')

# Kbuild takes ARCH literally and knows arm64, not aarch64.
export ARCH=arm64
export KBUILD_BUILD_HOST=archlinux
export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"

# Kbuild assigns BINDGEN itself, so an environment-only value is ignored.
# Supply the wrapper and its real tool in every makepkg phase, not just prepare.
_make() {
AURORA_BINDGEN_REAL="$srcdir/private-bindgen/rust-bindgen-0.73.2/target/release/bindgen" \
LIBCLANG_PATH="${AURORA_LIBCLANG_PATH:-/usr/lib/llvm18/lib}" \
RUSTUP_TOOLCHAIN=1.85.0 make LLVM="${AURORA_LLVM:-/usr/lib/llvm18/bin/}" \
BINDGEN="$srcdir/bindgen-kernel.py" "$@"
}

prepare() {
cd $_srcname

Expand All @@ -65,22 +76,37 @@ 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 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
scripts/kconfig/merge_config.sh -m -O "$PWD/build/base" build/base/.config ../neo.config
_make O="$PWD/build/base" olddefconfig
grep -qx 'CONFIG_RUST=y' build/base/.config || {
echo 'linux-aurora requires Rust drivers; toolchain/configuration disabled CONFIG_RUST' >&2; return 1;
}
_make O="$PWD/build/base" 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"
_make O="$PWD/build/base" -j"${OMARCHY_BUILD_JOBS:-10}" Image modules dtbs
}

_package_kernel() {
Expand All @@ -105,7 +131,7 @@ _package_kernel() {
echo "$1" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"

echo "Installing modules..."
make O="$O" INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 modules_install
_make O="$O" INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 modules_install

echo "Installing device trees..."
install -Dt "$modulesdir/dtbs" "$O"/arch/arm64/boot/dts/apple/*.dtb
Expand Down Expand Up @@ -142,7 +168,12 @@ _package-headers() {
#install -Dt "$builddir/tools/objtool" tools/objtool/objtool

# required when DEBUG_INFO_BTF_MODULES is enabled
install -Dt "$builddir/tools/bpf/resolve_btfids" $O/tools/bpf/resolve_btfids/resolve_btfids
if grep -qx 'CONFIG_DEBUG_INFO_BTF=y' "$O/.config"; then
[[ -x $O/tools/bpf/resolve_btfids/resolve_btfids ]] || {
echo 'BTF is enabled but resolve_btfids was not built' >&2; return 1;
}
install -Dt "$builddir/tools/bpf/resolve_btfids" "$O/tools/bpf/resolve_btfids/resolve_btfids"
fi

echo "Installing headers..."
cp -t "$builddir" -a include $O/include
Expand All @@ -169,7 +200,7 @@ _package-headers() {
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;

echo "Installing unstripped VDSO..."
make O="$O" INSTALL_MOD_PATH="$pkgdir/usr" vdso_install link=
_make O="$O" INSTALL_MOD_PATH="$pkgdir/usr" vdso_install link=

echo "Removing unneeded architectures..."
local arch
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)
7 changes: 7 additions & 0 deletions pkgbuilds/linux-aurora/neo.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Add Neo platform drivers without changing shared M1/M2/M3 policy or module timing.
CONFIG_PCIE_APPLE_PIODMA_DIAG=y
CONFIG_MT7932_FULLMAC=m
CONFIG_BT_MTK7932_PCIE=m
CONFIG_SPI_APPLE_QSPI=m
CONFIG_RTC_DRV_APPLE_PMU=m
CONFIG_APPLE_CLPC=m
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"]
Loading
Loading