mirror of
https://github.com/ps5-linux/ps5-linux-image.git
synced 2026-07-15 21:42:27 +00:00
kernel pkg: bundle ps5-stage-firmware service + modprobe.d (fixes wifi)
This commit is contained in:
@@ -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.)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user