Linux 6.18.1
This commit is contained in:
29
PKGBUILD
29
PKGBUILD
@@ -2,8 +2,8 @@
|
||||
# copied from Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
||||
|
||||
pkgbase=linux-tom
|
||||
pkgver=6.18.arch1
|
||||
pkgrel=1
|
||||
pkgver=6.18.1.arch1
|
||||
pkgrel=2
|
||||
pkgdesc='Linux'
|
||||
url='https://github.com/archlinux/linux'
|
||||
arch=(x86_64)
|
||||
@@ -38,7 +38,8 @@ makedepends=(
|
||||
#texlive-mathscience
|
||||
)
|
||||
options=(
|
||||
zipkmod
|
||||
!debug
|
||||
!strip
|
||||
)
|
||||
_srcname=linux-${pkgver%.*}
|
||||
_srctag=v${pkgver%.*}-${pkgver##*.}
|
||||
@@ -154,8 +155,8 @@ _package() {
|
||||
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
|
||||
|
||||
echo "Installing modules..."
|
||||
# Suppress depmod
|
||||
make INSTALL_MOD_PATH="$pkgdir/usr" DEPMOD=/doesnt/exist modules_install
|
||||
ZSTD_CLEVEL=19 make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
|
||||
DEPMOD=/doesnt/exist modules_install # Suppress depmod
|
||||
|
||||
# remove build link
|
||||
rm "$modulesdir"/build
|
||||
@@ -229,6 +230,24 @@ _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"
|
||||
|
||||
12337
config-6.18.1
Normal file
12337
config-6.18.1
Normal file
File diff suppressed because it is too large
Load Diff
2954
config-6.18.1.patch
Normal file
2954
config-6.18.1.patch
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user