Strip kernel modules for all kernels except for linux-postmarketos (#561)

Adding INSTALL_MOD_STRIP will cause modules to be stripped after
they are installed (option --strip-debug will be used)
In case someone isn't happy with it, please open a PR that reverts
it for your device, or start a discussion as a new issue.
This commit is contained in:
drebrez 2017-09-13 19:47:53 +02:00 committed by Oliver Smith
parent cdb003d9bd
commit 12cbff0ba5
4 changed files with 19 additions and 20 deletions

View file

@ -1,5 +1,4 @@
# APKBUILD based on linux-vanilla aport. Changes:
# - disabled module installation
# - add !check !tracedeps
# - package: just install zimage and kernel.release, because the kernel config
# does not generate modules or dtb files
@ -20,7 +19,7 @@ case $pkgver in
*.*.*) _kernver=${pkgver%.*};;
*.*) _kernver=$pkgver;;
esac
pkgrel=7
pkgrel=8
arch="armhf"
pkgdesc="LineageOS kernel for Nexus 5 hammerhead"
url="https://github.com/LineageOS/android_kernel_lge_hammerhead"
@ -112,11 +111,11 @@ package() {
echo "--[ Installing modules ]--"
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" CONFIG_NO_ERROR_ON_MISMATCH=y \
INSTALL_MOD_PATH="$pkgdir" modules_install \
INSTALL_MOD_PATH="$pkgdir" INSTALL_MOD_STRIP=1 modules_install \
|| return 1
}
sha512sums="06efc786722f904c5e37657c96b96fb3e6b005837aac3c63a75751a80d7ff5800af072e3095bbdf32f3ac602125f98ad6f99f82892d19668fe320874b720f543 linux-lg-hammerhead-1dae34efb7d2399073ca371c953aafd2ed503849.tar.gz
sha512sums="f02667fcdbec30f222e0be537a68de39adaee54790a7870dd406e97613f416492713c43f97685e69802acbc0628c1cb3201bb2213899988178600d6e14a4a928 linux-lg-hammerhead-1dae34efb7d2399073ca371c953aafd2ed503849.tar.gz
a1ab65fcababe36e181a15f904a57a3958781d9b7f39b0376592130771037a539fcb58801051358ac7f9e5651e8316959f2bf508444b5e415df8b6672aafa16e config-lg-hammerhead.armhf
d80980e9474c82ba0ef1a6903b434d8bd1b092c40367ba543e72d2c119301c8b2d05265740e4104ca1ac5d15f6c4aa49e8776cb44264a9a28dc551e0d1850dcc compiler-gcc6.h
ea1d3b5a234fa565e3c1a792de48f4fc4e6023d281d303c8e319c7ef28edc5739ab0e4dea0139a41f0a5c7d03e27921ccaa214fd0ac5c72245a094ce60128864 00_fix_return_address.patch

View file

@ -18,7 +18,7 @@ case $pkgver in
*.*.*) _kernver=${pkgver%.*};;
*.*) _kernver=$pkgver;;
esac
pkgrel=2
pkgrel=3
arch="armhf"
pkgdesc="LineageOS kernel for OnePlus One"
url="https://github.com/LineageOS/android_kernel_oneplus_msm8974"
@ -117,11 +117,11 @@ package() {
echo "--[ Installing modules ]--"
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1))-Alpine" CONFIG_NO_ERROR_ON_MISMATCH=y \
INSTALL_MOD_PATH="$pkgdir" modules_install \
INSTALL_MOD_PATH="$pkgdir" INSTALL_MOD_STRIP=1 modules_install \
|| return 1
}
sha512sums="3f2a599435799e8722ff20295dc438c1c8a303142ec73daf4f549dea1ed202271cf64d9bff9f781aaa0bebf6662a7e4061c2e9653d45c7936d2337c46a0f0789 linux-oneplus-bacon-lineage-15.0.tar.gz
sha512sums="4431ef33ce0be1600fbce8781af093330ffe0521accc9b799ba36b96aa0d551388acc1b79e0ff36e668b1d1e3c3dfdba6384b498e1c57d8b582118772176daf6 linux-oneplus-bacon-lineage-15.0.tar.gz
2939fdd0d54b56d9198b5b2527c2a3c647c74f658221c60b457bb68b5f5b1c3949876ae511ef5278766cf268d69fad8b25ca30d3fb807a8221b8d11769dfcf4a config-oneplus-bacon.armhf
d80980e9474c82ba0ef1a6903b434d8bd1b092c40367ba543e72d2c119301c8b2d05265740e4104ca1ac5d15f6c4aa49e8776cb44264a9a28dc551e0d1850dcc compiler-gcc6.h
7be03a9e78b7ac330a54b1f00509caa0621a95c0c55901878ad757f9dd69cc05ba2c8b5ea987063ae1224f92c4d090d515fa5d369e7755181a4871b0d0f82881 02_gpu-msm-fix-gcc5-compile.patch"

View file

@ -26,7 +26,7 @@ case $pkgver in
*.*.*) _kernver=${pkgver%.*};;
*.*) _kernver=$pkgver;;
esac
pkgrel=5
pkgrel=6
arch="armhf"
pkgdesc="Samsung Galaxy S Advance kernel from Epirex"
url="https://github.com/Epirex/Samsung_STE_Kernel"
@ -135,11 +135,11 @@ package() {
echo "--[ Installing modules ]--"
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1))-Alpine" CONFIG_NO_ERROR_ON_MISMATCH=y \
INSTALL_MOD_PATH="$pkgdir" modules_install \
INSTALL_MOD_PATH="$pkgdir" INSTALL_MOD_STRIP=1 modules_install \
|| return 1
}
sha512sums="5e9309a4329280f0cfbac6e5aae6465143a36197217ea72957e624b06ff724f4117b1309c5a535432ef008733723a605c90285d5740f7b798becd0130f2c0996 linux-samsung-i9070-ac7219c4b8dcec7bc5a598d42c6be0db4aa36332.tar.gz
sha512sums="bb8218d803ec27f983449a43d14df75122311609a39e5b57095f4e8933752a2699fa0d4df1674aeee7d6e3a439551dacc9af3cab26b6e3e71f0441a4f16693df linux-samsung-i9070-ac7219c4b8dcec7bc5a598d42c6be0db4aa36332.tar.gz
65ac788fc01180b803d8110333cbd0e30e742801647d6d4d813aaa6eca0c3d216f5daef0fc9583aef5a1ea2475d48567896da8e443781a1f08ff10ff8d6ea0a6 config-samsung-i9070.armhf
ea1d3b5a234fa565e3c1a792de48f4fc4e6023d281d303c8e319c7ef28edc5739ab0e4dea0139a41f0a5c7d03e27921ccaa214fd0ac5c72245a094ce60128864 00_fix_return_address.patch
c8f12ecf578be0c4600563134079b980a1079b08ac868302af8821022befe873aa94c67b9690ba87f5967f0a48939d15e871dc2d2862bed7b6a1d0c9a95cfd8f 01_remove_ramdisks_from_initramfs.patch

View file

@ -1,5 +1,4 @@
# APKBUILD based on linux-vanilla aport. Changes:
# - disabled module installation
# - add !check !tracedeps
# - package: just install zImage-dtb and kernel.release, because the kernel config
# does not generate modules or dtb files
@ -22,7 +21,7 @@ case $pkgver in
*.*.*) _kernver=${pkgver%.*};;
*.*) _kernver=$pkgver;;
esac
pkgrel=1
pkgrel=2
arch="armhf"
pkgdesc="Sony Xperia Z2 Tablet kernel"
url="https://github.com/andersson"
@ -92,13 +91,13 @@ build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" \
CFLAGS_MODULE=-fno-pic \
|| return 1
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" \
CFLAGS_MODULE=-fno-pic \
|| return 1
}
package() {
cat "$srcdir/build/arch/arm/boot/zImage" \
cat "$srcdir/build/arch/arm/boot/zImage" \
"$srcdir/build/arch/arm/boot/dts/qcom-msm8974-sony-xperia-castor.dtb" > \
"$srcdir/build/arch/arm/boot/zImage-dtb"
@ -109,10 +108,11 @@ package() {
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
cd "$srcdir/build"
make -j1 modules_install \
ARCH="$_carch" \
INSTALL_MOD_PATH="$pkgdir" \
|| return 1
make -j1 modules_install \
ARCH="$_carch" \
INSTALL_MOD_STRIP=1 \
INSTALL_MOD_PATH="$pkgdir" \
|| return 1
}
sha512sums="42e3d7ea75a2e69a7589e74409fe43f2abdee0f4cc1fcea1b138622e3845524145e4c41343abc57d71236b1e2f59715f719845fcf5e628a6c343e9b10d06942a linux-sony-castor-windy-next.tar.gz