summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/linux-libre-64/PKGBUILD14
1 files changed, 8 insertions, 6 deletions
diff --git a/libre/linux-libre-64/PKGBUILD b/libre/linux-libre-64/PKGBUILD
index 78e7933d5..233d390b0 100644
--- a/libre/linux-libre-64/PKGBUILD
+++ b/libre/linux-libre-64/PKGBUILD
@@ -9,7 +9,7 @@ _replacesoldmodules=() # '%' gets replaced with kernel suffix
pkgbase=linux-libre-64
pkgver=5.11.11
-pkgrel=2
+pkgrel=3
pkgdesc="64bit Linux-libre for Parabola $CARCH"
rcnver=5.11.11
rcnrel=armv7-x14
@@ -118,6 +118,8 @@ case "$CARCH" in
armv7h) KARCH=arm64;CROSS_COMPILE=aarch64-linux-gnu-;;
esac
+export STRIP=${CROSS_COMPILE}strip
+
export KBUILD_BUILD_HOST=parabola
export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
@@ -306,18 +308,18 @@ _package-headers() {
while read -rd '' file; do
case "$(file -bi "$file")" in
application/x-sharedlib\;*) # Libraries (.so)
- strip -v $STRIP_SHARED "$file" ;;
+ ${STRIP} -v $STRIP_SHARED "$file" ;;
application/x-archive\;*) # Libraries (.a)
- strip -v $STRIP_STATIC "$file" ;;
+ ${STRIP} -v $STRIP_STATIC "$file" ;;
application/x-executable\;*) # Binaries
- strip -v $STRIP_BINARIES "$file" ;;
+ ${STRIP} -v $STRIP_BINARIES "$file" ;;
application/x-pie-executable\;*) # Relocatable binaries
- strip -v $STRIP_SHARED "$file" ;;
+ ${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"
+ ${STRIP} -v $STRIP_STATIC "$builddir/vmlinux"
echo "Adding symlink..."
mkdir -p "$pkgdir/usr/src"