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