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
|
2021-11-06 13:15:57 +00:00
|
|
|
pkgver=5.15
|
|
|
|
pkgrel=0
|
2019-08-23 14:36:47 +00:00
|
|
|
pkgdesc="Mainline kernel fork for ST-Ericsson NovaThor devices"
|
|
|
|
arch="armv7"
|
|
|
|
_carch="arm"
|
2020-06-21 12:53:43 +00:00
|
|
|
url="https://github.com/stericsson-mainline/linux"
|
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="
|
|
|
|
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="
|
2021-11-06 13:15:57 +00:00
|
|
|
https://git.kernel.org/torvalds/t/linux-${pkgver//_/-}.tar.gz
|
2019-08-23 14:36:47 +00:00
|
|
|
config-$_flavor.armv7
|
2021-06-29 12:40:33 +00:00
|
|
|
emmc.patch
|
2021-06-04 08:44:43 +00:00
|
|
|
regulators.patch
|
2019-08-23 14:36:47 +00:00
|
|
|
"
|
2021-11-06 13:15:57 +00:00
|
|
|
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="
|
2021-11-06 13:15:57 +00:00
|
|
|
f31ff70afa2c0b5a83f04d862187570174e477b92ac5d503f9fb1d1617a0e16d863b786495c321e41528c4a67ab050a5320b1d875555405a1e6e1f7a3c3b6cc4 linux-5.15.tar.gz
|
|
|
|
19ac8f2394b71a3c1aff868fd986192218dd32085154e16241819cda511cb7451777c35f3e1fb289f59b2b271daa2bee199dd5a63fb8f70f081e7f695540c48f config-postmarketos-stericsson.armv7
|
2021-09-15 12:15:40 +00:00
|
|
|
d1bd4c1f04e67ab33f03285f8baf1187d4dde29b9c49711c56f31d4708296172295ea1ad153504f2a4e944ad3d80ddc12a7218dc0d79161089ed527fc4404632 emmc.patch
|
2021-06-04 08:44:43 +00:00
|
|
|
8206d74c52328827502a32644f70fd149a72a78aaf936cd44f474b9153e8caccf73206df76e24004329edebab90e1a4a0e965630f4817aa5dd642d9ee2729295 regulators.patch
|
2021-04-08 08:58:40 +00:00
|
|
|
"
|