Linux 6.18 added debug version

This commit is contained in:
2025-12-06 21:57:17 +01:00
parent e1b06b3776
commit a4d95f2289
9 changed files with 40 additions and 32 deletions

View File

@@ -38,8 +38,7 @@ makedepends=(
#texlive-mathscience
)
options=(
!debug
!strip
zipkmod
)
_srcname=linux-${pkgver%.*}
_srctag=v${pkgver%.*}-${pkgver##*.}
@@ -155,8 +154,8 @@ _package() {
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 # Suppress depmod
# Suppress depmod
make INSTALL_MOD_PATH="$pkgdir/usr" DEPMOD=/doesnt/exist modules_install
# remove build link
rm "$modulesdir"/build
@@ -230,24 +229,6 @@ _package-headers() {
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\;*) # Libraries (.so)
strip -v $STRIP_SHARED "$file" ;;
application/x-archive\;*) # Libraries (.a)
strip -v $STRIP_STATIC "$file" ;;
application/x-executable\;*) # Binaries
strip -v $STRIP_BINARIES "$file" ;;
application/x-pie-executable\;*) # Relocatable binaries
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"

View File

@@ -8,8 +8,23 @@ Afterwards, you can clone this repository.
## Troubleshooting
### GPG keys
If you have problems with GPG keys,
try to import keyID with
gpg --recv-keys 38DBBDC86092693E
B8AC08600F108CDF
### zipkmod
==> ERROR: options array contains unknown option 'zipkmod'
If this appears, you have to copy the file `50-zipkmod.sh` found in folder `/tidy/` at https://gitlab.archlinux.org/pacman/libmakepkg-dropins
to the folder `/usr/share/makepkg/tidy/`:
```
cd ~
wget https://gitlab.archlinux.org/pacman/libmakepkg-dropins/tidy/50-zipkmod.sh
mkdir -p /usr/share/makepkg/tidy
sudo install --compare --verbose --mode=644 50-zipkmod -t /usr/share/makepkg/tidy/.
```

2
config
View File

@@ -1070,7 +1070,7 @@ CONFIG_MODULE_COMPRESS=y
# CONFIG_MODULE_COMPRESS_GZIP is not set
# CONFIG_MODULE_COMPRESS_XZ is not set
CONFIG_MODULE_COMPRESS_ZSTD=y
CONFIG_MODULE_COMPRESS_ALL=y
# CONFIG_MODULE_COMPRESS_ALL is not set
CONFIG_MODULE_DECOMPRESS=y
CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS=y
CONFIG_MODPROBE_PATH="/sbin/modprobe"

View File

@@ -972,7 +972,7 @@ CONFIG_MODULE_COMPRESS=y
# CONFIG_MODULE_COMPRESS_GZIP is not set
# CONFIG_MODULE_COMPRESS_XZ is not set
CONFIG_MODULE_COMPRESS_ZSTD=y
CONFIG_MODULE_COMPRESS_ALL=y
# CONFIG_MODULE_COMPRESS_ALL is not set
CONFIG_MODULE_DECOMPRESS=y
CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS=y
CONFIG_MODPROBE_PATH="/sbin/modprobe"

View File

@@ -1,5 +1,5 @@
--- ../config 2025-12-02 01:58:44.113410551 +0100
+++ .config 2025-12-02 02:06:07.544466809 +0100
--- ../config 2025-12-06 21:07:59.404193765 +0100
+++ .config 2025-12-06 21:14:43.516778527 +0100
@@ -58,13 +58,12 @@
# CONFIG_KERNEL_LZ4 is not set
CONFIG_KERNEL_ZSTD=y
@@ -650,6 +650,15 @@
CONFIG_MODULE_UNLOAD_TAINT_TRACKING=y
# CONFIG_MODVERSIONS is not set
CONFIG_MODULE_SRCVERSION_ALL=y
@@ -1070,7 +985,7 @@
# CONFIG_MODULE_COMPRESS_GZIP is not set
# CONFIG_MODULE_COMPRESS_XZ is not set
CONFIG_MODULE_COMPRESS_ZSTD=y
-# CONFIG_MODULE_COMPRESS_ALL is not set
+CONFIG_MODULE_COMPRESS_ALL=y
CONFIG_MODULE_DECOMPRESS=y
CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS=y
CONFIG_MODPROBE_PATH="/sbin/modprobe"
@@ -1160,7 +1075,6 @@
# Executable file formats
#

Binary file not shown.

Binary file not shown.