d213b248eb
[ci:skip-build] already built successfully in CI
74 lines
2.1 KiB
Text
74 lines
2.1 KiB
Text
# Reference: <https://postmarketos.org/vendorkernel>
|
|
# Maintainer: Newbyte <newbyte@disroot.org>
|
|
# Kernel config based on: arch/arm/configs/u8500_defconfig
|
|
|
|
_flavor="postmarketos-stericsson"
|
|
_config="config-$_flavor.armv7"
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.15
|
|
pkgrel=0
|
|
pkgdesc="Mainline kernel fork for ST-Ericsson NovaThor devices"
|
|
arch="armv7"
|
|
_carch="arm"
|
|
url="https://github.com/stericsson-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-anbox
|
|
pmb:kconfigcheck-containers
|
|
pmb:kconfigcheck-zram
|
|
pmb:kconfigcheck-nftables
|
|
"
|
|
makedepends="
|
|
bison
|
|
findutils
|
|
gmp-dev
|
|
flex
|
|
mpc1-dev
|
|
mpfr-dev
|
|
openssl-dev
|
|
perl
|
|
postmarketos-installkernel
|
|
"
|
|
case $pkgver in
|
|
*.*.*) _kernver=${pkgver%.0};;
|
|
*.*) _kernver=$pkgver;;
|
|
esac
|
|
source="
|
|
https://git.kernel.org/torvalds/t/linux-${pkgver//_/-}.tar.gz
|
|
config-$_flavor.armv7
|
|
emmc.patch
|
|
regulators.patch
|
|
"
|
|
builddir="$srcdir/linux-${_kernver//_/-}"
|
|
|
|
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
|
|
}
|
|
|
|
sha512sums="
|
|
f31ff70afa2c0b5a83f04d862187570174e477b92ac5d503f9fb1d1617a0e16d863b786495c321e41528c4a67ab050a5320b1d875555405a1e6e1f7a3c3b6cc4 linux-5.15.tar.gz
|
|
19ac8f2394b71a3c1aff868fd986192218dd32085154e16241819cda511cb7451777c35f3e1fb289f59b2b271daa2bee199dd5a63fb8f70f081e7f695540c48f config-postmarketos-stericsson.armv7
|
|
d1bd4c1f04e67ab33f03285f8baf1187d4dde29b9c49711c56f31d4708296172295ea1ad153504f2a4e944ad3d80ddc12a7218dc0d79161089ed527fc4404632 emmc.patch
|
|
8206d74c52328827502a32644f70fd149a72a78aaf936cd44f474b9153e8caccf73206df76e24004329edebab90e1a4a0e965630f4817aa5dd642d9ee2729295 regulators.patch
|
|
"
|