UPD linux 6.18.9

This commit is contained in:
2026-02-13 05:14:59 +08:00
parent c9af0f24c5
commit 4e55dc73d0
4 changed files with 42 additions and 15366 deletions

View File

@@ -2,11 +2,13 @@
# copied from Jan Alexander Steffens (heftig) <heftig@archlinux.org>
pkgbase=linux-tom
pkgver=6.18.7.arch1
pkgrel=1
pkgver=6.18.9.arch1
pkgrel=2
pkgdesc='Linux'
url='https://github.com/archlinux/linux'
arch=(x86_64)
arch=(
x86_64
)
license=(GPL-2.0-only)
makedepends=(
bc
@@ -46,24 +48,24 @@ _srctag=v${pkgver%.*}-${pkgver##*.}
source=(
https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign}
$url/releases/download/$_srctag/linux-$_srctag.patch.zst{,.sig}
config # the main kernel config file
)
source_x86_64=(config.x86_64)
validpgpkeys=(
ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds
647F28654894E3BD457199BE38DBBDC86092693E # Greg Kroah-Hartman
83BC8889351B5DEBBB68416EB8AC08600F108CDF # Jan Alexander Steffens (heftig)
)
b2sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
b2sums_x86_64=('SKIP')
# https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
b2sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
export KBUILD_BUILD_HOST=archlinux
export KBUILD_BUILD_USER=$pkgbase
@@ -88,27 +90,27 @@ prepare() {
done
echo "Setting config..."
# cp ../config .config
# cp ../config.$CARCH .config
cfgver=../../config-${pkgver%.*}
cfgver=../../config-${pkgver%.*}.$CARCH
if test -f "${cfgver}"
then
echo "${cfgver} exists."
cp "${cfgver}" .config
echo ".config now has the content of ${cfgver}"
else
echo "copy original config file, ${cfgver} does not exist."
cp ../config .config
echo "copy original config file, ${cfgver} does _not_ exist!!!"
cp ../config.$CARCH .config
fi
make olddefconfig
# diff -u ../config .config || :
# diff -u ../config.$CARCH .config || :
# this and next line is added by me, Thomas Kuschel oe3tkt
read -p "Press enter to continue with nconfig (former menuconfig)"
make nconfig
diff -u ../config .config | tee "../../config-${pkgver%.*}.patch" || :
cp .config "../../config-${pkgver%.*}"
diff -u ../config.$CARCH .config | tee "../../config-${pkgver%.*}.$CARCH.patch" || :
cp .config "../../config-${pkgver%.*}.$CARCH"
make -s kernelrelease > version
echo "Prepared $pkgbase version $(<version)"
@@ -129,6 +131,7 @@ _package() {
kmod
)
optdepends=(
"$pkgbase-headers: headers and scripts for building modules"
'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'
@@ -166,28 +169,37 @@ _package() {
_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
depends=(pahole)
provides=(LINUX-HEADERS)
cd $_srcname
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
local karch
case $CARCH in
x86_64) karch=x86 ;;
*) echo "Unknown CARCH $CARCH"; exit 1 ;;
esac
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
install -Dt "$builddir/arch/$karch" -m644 arch/$karch/Makefile
cp -t "$builddir" -a scripts
ln -srt "$builddir" "$builddir/scripts/gdb/vmlinux-gdb.py"
# required when STACK_VALIDATION is enabled
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
if [[ $(scripts/config -s CONFIG_HAVE_STACK_VALIDATION) = y ]]; then
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
fi
# required when DEBUG_INFO_BTF_MODULES is enabled
install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
if [[ $(scripts/config -s CONFIG_DEBUG_INFO_BTF_MODULES) = y ]]; then
install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
fi
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
cp -t "$builddir/arch/$karch" -a arch/$karch/include
install -Dt "$builddir/arch/$karch/kernel" -m644 arch/$karch/kernel/asm-offsets.s
install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h
install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h
@@ -207,8 +219,10 @@ _package-headers() {
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
echo "Installing Rust files..."
install -Dt "$builddir/rust" -m644 rust/*.rmeta
install -Dt "$builddir/rust" rust/*.so
if [[ $(scripts/config -s CONFIG_RUST) = y ]]; then
install -Dt "$builddir/rust" -m644 rust/*.rmeta
install -Dt "$builddir/rust" rust/*.so
fi
echo "Installing unstripped VDSO..."
make INSTALL_MOD_PATH="$pkgdir/usr" vdso_install \
@@ -217,7 +231,7 @@ _package-headers() {
echo "Removing unneeded architectures..."
local arch
for arch in "$builddir"/arch/*/; do
[[ $arch = */x86/ ]] && continue
[[ $arch = */$karch/ ]] && continue
echo "Removing $(basename "$arch")"
rm -r "$arch"
done

View File

@@ -17,8 +17,8 @@ path = [
"*.timer",
"*.desktop",
"*.hook",
"config",
".gitignore",
"config.*",
]
SPDX-FileCopyrightText = "Arch Linux contributors"
SPDX-License-Identifier = "0BSD"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff