2019-08-23 14:36:47 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
2021-09-15 17:27:00 +00:00
|
|
|
# Maintainer: Newbyte <newbyte@disroot.org>
|
2019-08-23 14:36:47 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/u8500_defconfig
|
|
|
|
|
2020-06-21 12:53:43 +00:00
|
|
|
_flavor="postmarketos-stericsson"
|
2021-04-08 08:58:40 +00:00
|
|
|
_config="config-$_flavor.armv7"
|
2020-06-21 12:53:43 +00:00
|
|
|
pkgname=linux-$_flavor
|
2022-06-18 16:59:47 +00:00
|
|
|
pkgver=5.19_rc2
|
2022-08-19 16:35:15 +00:00
|
|
|
pkgrel=2
|
2022-08-13 21:38:06 +00:00
|
|
|
pkgdesc="Mainline kernel for ST-Ericsson NovaThor devices"
|
2019-08-23 14:36:47 +00:00
|
|
|
arch="armv7"
|
|
|
|
_carch="arm"
|
2022-08-13 21:38:06 +00:00
|
|
|
url="https://kernel.org"
|
2019-08-23 14:36:47 +00:00
|
|
|
license="GPL-2.0-only"
|
2021-07-17 15:03:47 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
2021-09-16 17:22:32 +00:00
|
|
|
pmb:kconfigcheck-anbox
|
2021-09-17 14:27:28 +00:00
|
|
|
pmb:kconfigcheck-containers
|
2021-07-17 15:03:47 +00:00
|
|
|
pmb:kconfigcheck-zram
|
2021-07-19 21:17:01 +00:00
|
|
|
pmb:kconfigcheck-nftables
|
2021-07-17 15:03:47 +00:00
|
|
|
"
|
2021-10-12 10:46:33 +00:00
|
|
|
makedepends="
|
2022-06-18 16:59:47 +00:00
|
|
|
bash
|
2021-10-12 10:46:33 +00:00
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
gmp-dev
|
|
|
|
flex
|
|
|
|
mpc1-dev
|
|
|
|
mpfr-dev
|
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
postmarketos-installkernel
|
|
|
|
"
|
2021-11-06 13:15:57 +00:00
|
|
|
case $pkgver in
|
|
|
|
*.*.*) _kernver=${pkgver%.0};;
|
|
|
|
*.*) _kernver=$pkgver;;
|
|
|
|
esac
|
2019-08-23 14:36:47 +00:00
|
|
|
source="
|
2022-04-05 16:57:18 +00:00
|
|
|
https://git.kernel.org/torvalds/t/linux-${_kernver//_/-}.tar.gz
|
2019-08-23 14:36:47 +00:00
|
|
|
config-$_flavor.armv7
|
2022-04-05 16:57:18 +00:00
|
|
|
disable-busy-detect-on-ux500-mmci.patch
|
|
|
|
power-supply-ab8500-exit-maintenance-if-too-low-voltage.patch
|
|
|
|
power-supply-ab8500-respect-charge_restart_voltage_uv.patch
|
|
|
|
pwm-ab8500-get-hw-id-from-reg-value.patch
|
|
|
|
"
|
|
|
|
builddir="$srcdir/linux-${_kernver//_/-}"
|
2019-08-23 14:36:47 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make zinstall modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
|
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
|
|
}
|
|
|
|
|
2021-04-08 08:58:40 +00:00
|
|
|
sha512sums="
|
2022-06-18 16:59:47 +00:00
|
|
|
bb0016e3f9f2f42c3e1b8e7e5a067e65cb2e76c5dacac55625655d6e65d286e9520860d21b7faecc7f20c3cff4a330b3ccddfb588595ef325dd81c56660daa1d linux-5.19-rc2.tar.gz
|
2022-08-19 16:35:15 +00:00
|
|
|
2c04a0adb44e9daf90e581f1873f2cf3a4ca96632f38b1cdadfa57cf45eb86a48e263a6d8dbb79f9715d75adea0f65f2cbae7d27f5a385eb5d367646c57da3fd config-postmarketos-stericsson.armv7
|
2022-04-05 16:57:18 +00:00
|
|
|
4ea0fd3fa602bab21f0cc2c31462d3ef6958c63394b41061ddf0bc2c8baa8b9c571cb5553a37c43315df84049eb7d6a6dc4f873c6d06d9ea4883c37dce40d7ec disable-busy-detect-on-ux500-mmci.patch
|
|
|
|
56c0e375d9078abf1144bf6df25dab176794a18d5c33f77e76b5dc44fc60f0f40ffe26991f0529ff36deaef0b3b66f8ae880968aa2459f774feb4c7993658bdd power-supply-ab8500-exit-maintenance-if-too-low-voltage.patch
|
|
|
|
81c1acf81a250326b6917503ec70572e18b06864248f704c1a691b0f2fd096f9d0a87acd4e05e258583b4c21c990a3f3230a360a7a02f00b6e83e3034902641c power-supply-ab8500-respect-charge_restart_voltage_uv.patch
|
|
|
|
56126fcfee94121cddacf6987d64517c88fb35739285143fd2fb7f8c3c10d3e326d931c5a981d3cbc5a09d7286e41c9013866b36532a410441140b4af80a2808 pwm-ab8500-get-hw-id-from-reg-value.patch
|
2021-04-08 08:58:40 +00:00
|
|
|
"
|