kernel pkg: bundle ps5-stage-firmware service + modprobe.d (fixes wifi)

This commit is contained in:
mia
2026-06-30 19:58:23 -04:00
parent 44bd2b4cf5
commit 7f8d0302b7
2 changed files with 16 additions and 0 deletions

View File

@@ -28,6 +28,14 @@ cp /out/staging/.config "$STAGING/boot/config-$KVER"
mkdir -p "$STAGING/usr/lib/modules" mkdir -p "$STAGING/usr/lib/modules"
cp -a "/out/staging/lib/modules/$KVER" "$STAGING/usr/lib/modules/" cp -a "/out/staging/lib/modules/$KVER" "$STAGING/usr/lib/modules/"
# Userspace bits the kernel-builder staged at /out/staging/{etc,usr/local}:
# ps5-stage-firmware service + script (bridges nxp blob from /boot/efi),
# ps5-iw620 modprobe.d options. Without these the WLAN driver loads but
# request_firmware() returns -2 and wlan_pcie probe fails.
for d in etc usr/local; do
[ -d "/out/staging/$d" ] && { mkdir -p "$STAGING/$d"; cp -a "/out/staging/$d/." "$STAGING/$d/"; }
done
# Kernel headers (for out-of-tree module builds) # Kernel headers (for out-of-tree module builds)
if [ -d /out/staging/headers ]; then if [ -d /out/staging/headers ]; then
# UAPI headers (/usr/include/linux/, /usr/include/asm/, etc.) # UAPI headers (/usr/include/linux/, /usr/include/asm/, etc.)

View File

@@ -18,6 +18,14 @@ cp "$STAGING/System.map" "$PKG/boot/System.map-$KVER"
cp "$STAGING/.config" "$PKG/boot/config-$KVER" cp "$STAGING/.config" "$PKG/boot/config-$KVER"
cp -a "$STAGING/lib/modules/$KVER" "$PKG/lib/modules/" cp -a "$STAGING/lib/modules/$KVER" "$PKG/lib/modules/"
# Userspace bits the kernel-builder staged at /out/staging/{etc,usr/local}:
# ps5-stage-firmware service + script (bridges nxp blob from /boot/efi),
# ps5-iw620 modprobe.d options. Without these the WLAN driver loads but
# request_firmware() returns -2 and wlan_pcie probe fails.
for d in etc usr/local; do
[ -d "$STAGING/$d" ] && { mkdir -p "$PKG/$d"; cp -a "$STAGING/$d/." "$PKG/$d/"; }
done
# Kernel headers (for out-of-tree module builds) # Kernel headers (for out-of-tree module builds)
if [ -d "$STAGING/headers" ]; then if [ -d "$STAGING/headers" ]; then
# $PKG/usr may already exist from other staged files, so merge contents # $PKG/usr may already exist from other staged files, so merge contents