2021-04-17 00:07:19 +00:00
|
|
|
# Maintainer: Jami Kettunen <jami.kettunen@protonmail.com>
|
|
|
|
# Stable Linux kernel with patches for MSM8998 devices
|
2022-03-30 17:11:44 +00:00
|
|
|
# Kernel config based on: msm8998_defconfig
|
2021-04-17 00:07:19 +00:00
|
|
|
_flavor="postmarketos-qcom-msm8998"
|
|
|
|
pkgname=linux-$_flavor
|
2022-03-30 17:11:44 +00:00
|
|
|
pkgver=6.0
|
|
|
|
pkgrel=0
|
|
|
|
_commit="90169e6e9fee29fae14aeac0a905246be5ce6304"
|
2021-04-17 00:07:19 +00:00
|
|
|
pkgdesc="Mainline Kernel fork for MSM8998 devices"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
url="https://gitlab.com/msm8998-mainline/linux"
|
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
|
|
|
"
|
|
|
|
makedepends="
|
2022-03-30 17:11:44 +00:00
|
|
|
bash
|
2021-04-17 00:07:19 +00:00
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
flex
|
|
|
|
linux-headers
|
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
postmarketos-installkernel
|
|
|
|
xz
|
|
|
|
"
|
|
|
|
|
|
|
|
# Source
|
|
|
|
source="
|
|
|
|
https://gitlab.com/msm8998-mainline/linux/-/archive/$_commit/linux-$_commit.tar.gz
|
|
|
|
$_config
|
|
|
|
"
|
|
|
|
builddir="$srcdir/linux-$_commit"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1))-$_flavor"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
|
|
|
|
make zinstall modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_MOD_STRIP=1 \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
2021-04-17 00:07:19 +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
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2022-03-30 17:11:44 +00:00
|
|
|
e1d75369d58f823da5fe0cde17314a4ec2dc9dbab57452b7b8af6b97e91797720162e78f9ca7da2cbb533833b38be86743b8bf0084af1b36b5d23c9207a5248e linux-90169e6e9fee29fae14aeac0a905246be5ce6304.tar.gz
|
|
|
|
6d58d993258a69278dc0d19dd4f6d163aba41542fe9c37df6fa7d66fd041f1dbbc4032778e27d3c0118603f458ceb3cf4ec977847657b37afd9ce94aab4b4fb8 config-postmarketos-qcom-msm8998.aarch64
|
2021-04-17 00:07:19 +00:00
|
|
|
"
|