No longer needed
This commit is contained in:
1 parent
7437df336e
commit
5111f601af
2 files changed
-229
No files matched your search
@@ -1,209 +0,0 @@
|
|||||||
# Maintainer: Omarchy <packages@omarchy.org>
|
|
||||||
# Based on the AUR linux-mainline package by:
|
|
||||||
# Maintainer: Mikael Eriksson <mikael_eriksson@miffe.org>
|
|
||||||
|
|
||||||
pkgbase=linux-mainline-panther-lake
|
|
||||||
pkgver=7.0rc4
|
|
||||||
pkgrel=2
|
|
||||||
pkgdesc="Linux Mainline (Panther Lake audio support)"
|
|
||||||
arch=(x86_64)
|
|
||||||
url="https://kernel.org/"
|
|
||||||
license=(GPL-2.0-only)
|
|
||||||
makedepends=(
|
|
||||||
bc
|
|
||||||
cpio
|
|
||||||
gettext
|
|
||||||
git
|
|
||||||
libelf
|
|
||||||
pahole
|
|
||||||
perl
|
|
||||||
python
|
|
||||||
rust
|
|
||||||
rust-bindgen
|
|
||||||
rust-src
|
|
||||||
tar
|
|
||||||
xz
|
|
||||||
)
|
|
||||||
options=(
|
|
||||||
!debug
|
|
||||||
!strip
|
|
||||||
)
|
|
||||||
_tag=v7.0-rc4
|
|
||||||
_srcname=linux-mainline
|
|
||||||
source=(
|
|
||||||
"$_srcname::git+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git#tag=$_tag"
|
|
||||||
"config::https://aur.archlinux.org/cgit/aur.git/plain/config?h=linux-mainline"
|
|
||||||
"ptl-audio.config"
|
|
||||||
)
|
|
||||||
sha256sums=(
|
|
||||||
'SKIP'
|
|
||||||
'SKIP'
|
|
||||||
'SKIP'
|
|
||||||
)
|
|
||||||
validpgpkeys=(
|
|
||||||
ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds
|
|
||||||
647F28654894E3BD457199BE38DBBDC86092693E # Greg Kroah-Hartman
|
|
||||||
)
|
|
||||||
|
|
||||||
export KBUILD_BUILD_HOST=archlinux
|
|
||||||
export KBUILD_BUILD_USER=$pkgbase
|
|
||||||
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd $_srcname
|
|
||||||
|
|
||||||
echo "Setting version..."
|
|
||||||
echo "-$pkgrel" > localversion.10-pkgrel
|
|
||||||
echo "${pkgbase#linux}" > localversion.20-pkgname
|
|
||||||
|
|
||||||
local src
|
|
||||||
for src in "${source[@]}"; do
|
|
||||||
src="${src%%::*}"
|
|
||||||
src="${src##*/}"
|
|
||||||
src="${src%.zst}"
|
|
||||||
[[ $src = *.patch ]] || continue
|
|
||||||
echo "Applying patch $src..."
|
|
||||||
patch -Np1 < "../$src"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Setting config..."
|
|
||||||
cp ../config .config
|
|
||||||
|
|
||||||
# Merge Panther Lake audio config fragment
|
|
||||||
echo "Merging Panther Lake audio config..."
|
|
||||||
scripts/kconfig/merge_config.sh -m .config ../ptl-audio.config
|
|
||||||
|
|
||||||
make olddefconfig
|
|
||||||
diff -u ../config .config || :
|
|
||||||
|
|
||||||
make -s kernelrelease > version
|
|
||||||
echo "Prepared $pkgbase version $(<version)"
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd $_srcname
|
|
||||||
make all
|
|
||||||
make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1
|
|
||||||
}
|
|
||||||
|
|
||||||
_package() {
|
|
||||||
pkgdesc="The $pkgdesc kernel and modules"
|
|
||||||
depends=(
|
|
||||||
coreutils
|
|
||||||
initramfs
|
|
||||||
kmod
|
|
||||||
)
|
|
||||||
optdepends=(
|
|
||||||
'linux-firmware: firmware images needed for some devices'
|
|
||||||
'scx-scheds: to use sched-ext schedulers'
|
|
||||||
'wireless-regdb: to set the correct wireless channels of your country'
|
|
||||||
)
|
|
||||||
provides=(
|
|
||||||
KSMBD-MODULE
|
|
||||||
NTSYNC-MODULE
|
|
||||||
VIRTUALBOX-GUEST-MODULES
|
|
||||||
WIREGUARD-MODULE
|
|
||||||
)
|
|
||||||
|
|
||||||
cd $_srcname
|
|
||||||
local modulesdir="$pkgdir/usr/lib/modules/$(<version)"
|
|
||||||
|
|
||||||
echo "Installing boot image..."
|
|
||||||
install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
|
|
||||||
|
|
||||||
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
|
|
||||||
|
|
||||||
echo "Installing modules..."
|
|
||||||
ZSTD_CLEVEL=19 make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
|
|
||||||
DEPMOD=/doesnt/exist modules_install
|
|
||||||
|
|
||||||
rm "$modulesdir"/build
|
|
||||||
}
|
|
||||||
|
|
||||||
_package-headers() {
|
|
||||||
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
|
|
||||||
depends=(pahole)
|
|
||||||
|
|
||||||
cd $_srcname
|
|
||||||
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
|
|
||||||
|
|
||||||
echo "Installing build files..."
|
|
||||||
install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \
|
|
||||||
localversion.* version vmlinux tools/bpf/bpftool/vmlinux.h
|
|
||||||
install -Dt "$builddir/kernel" -m644 kernel/Makefile
|
|
||||||
install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile
|
|
||||||
cp -t "$builddir" -a scripts
|
|
||||||
ln -srt "$builddir" "$builddir/scripts/gdb/vmlinux-gdb.py"
|
|
||||||
|
|
||||||
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
|
|
||||||
install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
|
|
||||||
|
|
||||||
echo "Installing headers..."
|
|
||||||
cp -t "$builddir" -a include
|
|
||||||
cp -t "$builddir/arch/x86" -a arch/x86/include
|
|
||||||
install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s
|
|
||||||
|
|
||||||
install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h
|
|
||||||
install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h
|
|
||||||
install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h
|
|
||||||
install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h
|
|
||||||
install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h
|
|
||||||
install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h
|
|
||||||
install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h
|
|
||||||
|
|
||||||
echo "Installing KConfig files..."
|
|
||||||
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
|
|
||||||
|
|
||||||
echo "Installing Rust files..."
|
|
||||||
install -Dt "$builddir/rust" -m644 rust/*.rmeta
|
|
||||||
install -Dt "$builddir/rust" rust/*.so
|
|
||||||
|
|
||||||
echo "Installing unstripped VDSO..."
|
|
||||||
make INSTALL_MOD_PATH="$pkgdir/usr" vdso_install link=
|
|
||||||
|
|
||||||
echo "Removing unneeded architectures..."
|
|
||||||
local arch
|
|
||||||
for arch in "$builddir"/arch/*/; do
|
|
||||||
[[ $arch = */x86/ ]] && continue
|
|
||||||
echo "Removing $(basename "$arch")"
|
|
||||||
rm -r "$arch"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Removing documentation..."
|
|
||||||
rm -r "$builddir/Documentation"
|
|
||||||
|
|
||||||
echo "Removing broken symlinks..."
|
|
||||||
find -L "$builddir" -type l -printf 'Removing %P\n' -delete
|
|
||||||
|
|
||||||
echo "Removing loose objects..."
|
|
||||||
find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete
|
|
||||||
|
|
||||||
echo "Stripping build tools..."
|
|
||||||
local file
|
|
||||||
while read -rd '' file; do
|
|
||||||
case "$(file -Sib "$file")" in
|
|
||||||
application/x-sharedlib\;*) strip -v $STRIP_SHARED "$file" ;;
|
|
||||||
application/x-archive\;*) strip -v $STRIP_STATIC "$file" ;;
|
|
||||||
application/x-executable\;*) strip -v $STRIP_BINARIES "$file" ;;
|
|
||||||
application/x-pie-executable\;*) strip -v $STRIP_SHARED "$file" ;;
|
|
||||||
esac
|
|
||||||
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
|
|
||||||
|
|
||||||
echo "Stripping vmlinux..."
|
|
||||||
strip -v $STRIP_STATIC "$builddir/vmlinux"
|
|
||||||
|
|
||||||
echo "Adding symlink..."
|
|
||||||
mkdir -p "$pkgdir/usr/src"
|
|
||||||
ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkgname=(
|
|
||||||
"$pkgbase"
|
|
||||||
"$pkgbase-headers"
|
|
||||||
)
|
|
||||||
for _p in "${pkgname[@]}"; do
|
|
||||||
eval "package_$_p() {
|
|
||||||
$(declare -f "_package${_p#$pkgbase}")
|
|
||||||
_package${_p#$pkgbase}
|
|
||||||
}"
|
|
||||||
done
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# Panther Lake audio support for Dell XPS 2026 and similar systems
|
|
||||||
# These options prevent kernel panics from SOF/HDA driver conflicts
|
|
||||||
# and enable correct audio on Intel Panther Lake hardware.
|
|
||||||
|
|
||||||
# Required modules
|
|
||||||
CONFIG_SND_SOC_ACPI_AMD_SDCA_QUIRKS=m
|
|
||||||
CONFIG_SND_SOC_INTEL_SOF_TI_COMMON=m
|
|
||||||
CONFIG_SND_SOC_SDCA_FDL=y
|
|
||||||
CONFIG_SND_SOC_SDCA_CLASS=m
|
|
||||||
CONFIG_SND_SOC_SDCA_CLASS_FUNCTION=m
|
|
||||||
CONFIG_SND_SOC_SOF_INTEL_NVL=m
|
|
||||||
CONFIG_SND_SOC_SOF_NOVALAKE=m
|
|
||||||
CONFIG_SND_SOC_NAU8325=m
|
|
||||||
|
|
||||||
# Explicitly disabled (must not be set)
|
|
||||||
# CONFIG_SND_HDA_SCODEC_CS35L56_CAL_DEBUGFS is not set
|
|
||||||
# CONFIG_SND_SOC_CS35L56_CAL_DEBUGFS is not set
|
|
||||||
# CONFIG_SND_SOC_CS35L56_CAL_SET_CTRL is not set
|
|
||||||
# CONFIG_SND_SOC_CS530X_SPI is not set
|
|
||||||
# CONFIG_SND_SOC_RT5575 is not set
|
|
||||||
Reference in new issue
Block a user