2019-09-20 21:23:33 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/qcom_defconfig
|
|
|
|
# APKBUILD based on linux-postmarketos-mainline
|
|
|
|
# See: https://gitlab.com/postmarketOS/pmaports/issues/184
|
|
|
|
|
|
|
|
_flavor=sony-nicki-mainline
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$CARCH"
|
2019-09-20 21:23:33 +00:00
|
|
|
|
2020-02-28 09:59:56 +00:00
|
|
|
pkgname=linux-$_flavor
|
2019-09-20 21:23:33 +00:00
|
|
|
|
|
|
|
pkgver=5.3
|
2023-02-16 16:49:30 +00:00
|
|
|
pkgrel=7
|
2019-09-20 21:23:33 +00:00
|
|
|
|
|
|
|
arch="armv7"
|
2023-02-16 16:49:30 +00:00
|
|
|
_carch="arm"
|
2020-07-11 09:16:39 +00:00
|
|
|
pkgdesc="Sony Xperia M kernel fork, close to mainline"
|
2019-09-20 21:23:33 +00:00
|
|
|
url="https://kernel.org/"
|
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev openssl-dev file bison flex"
|
2023-02-16 16:49:30 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
|
|
|
pmb:kconfigcheck-community"
|
|
|
|
license="GPL-2.0-only"
|
2019-09-20 21:23:33 +00:00
|
|
|
|
|
|
|
_repository="linux"
|
|
|
|
_commit="ad6ab7f8c57896cb3829e6a80408e0912d6096c2"
|
|
|
|
|
|
|
|
source="
|
2020-02-28 10:17:04 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/konradybcio/$_repository/archive/$_commit.tar.gz
|
2020-02-28 09:59:56 +00:00
|
|
|
config-$_flavor.armv7
|
2020-11-04 12:48:12 +00:00
|
|
|
linux4.17-gcc10-extern_YYLOC_global_declaration.patch
|
2019-09-20 21:23:33 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
builddir="$srcdir/linux-$_commit"
|
|
|
|
|
|
|
|
prepare() {
|
2023-02-16 16:49:30 +00:00
|
|
|
default_prepare
|
|
|
|
|
|
|
|
cp "$srcdir"/$_config .config
|
2019-09-20 21:23:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2023-02-16 16:49:30 +00:00
|
|
|
# V=1: workaround for pma#1990
|
2019-09-20 21:23:33 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2020-02-28 09:59:56 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" \
|
2023-02-16 16:49:30 +00:00
|
|
|
CFLAGS_MODULE=-fno-pic V=1
|
2019-09-20 21:23:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-02-16 16:49:30 +00:00
|
|
|
install -Dm644 "$builddir/arch/$_carch/boot/"*zImage \
|
2021-08-25 19:35:59 +00:00
|
|
|
"$pkgdir/boot/vmlinuz"
|
2019-09-20 21:23:33 +00:00
|
|
|
|
2023-02-16 16:49:30 +00:00
|
|
|
install -D "$builddir/include/config/kernel.release" \
|
2019-09-20 21:23:33 +00:00
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
|
2023-02-16 16:49:30 +00:00
|
|
|
make modules_install \
|
2019-09-20 21:23:33 +00:00
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
2023-02-16 16:49:30 +00:00
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
|
|
|
2019-09-20 21:23:33 +00:00
|
|
|
}
|
|
|
|
|
2023-02-16 16:49:30 +00:00
|
|
|
sha512sums="
|
|
|
|
31e9ef9b3e956df38824865c291530fa5dda067bfea8b0169a3871d7876cfe192a42ae631e51a8a02f7c64319269c8af2688d8ae180805173bf2c1c84c390a59 linux-sony-nicki-mainline-ad6ab7f8c57896cb3829e6a80408e0912d6096c2.tar.gz
|
|
|
|
c72724663ad84538441046d15f7746fae44faa0d98b51cd9359016c757c321d8ec5a8602cbccbccfad6f8e6b1b19c9be8109f9e390cb52468304a61f8bc6d2e1 config-sony-nicki-mainline.armv7
|
|
|
|
27827877040007fc1c4c719f7e2e19e5c272d44972415cfc53feba0313d87e4074f8204bdb13cbc5fe21ea61bf595314b68f10c081e7b7bac3c888b60f008acf linux4.17-gcc10-extern_YYLOC_global_declaration.patch
|
|
|
|
"
|