2021-02-16 06:45:10 +00:00
|
|
|
# Maintainer: Caleb Connolly <caleb@connolly.tech>
|
|
|
|
# Co-Maintainer: Joel Selvaraj <jo@jsfamily.in>
|
|
|
|
# Stable Linux kernel with patches for SDM845 devices
|
|
|
|
# Kernel config based on: arch/arm64/configs/defconfig and sdm845.config
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-sdm845"
|
|
|
|
pkgname=linux-$_flavor
|
2022-09-01 10:50:27 +00:00
|
|
|
pkgver=5.19.7
|
|
|
|
pkgrel=0
|
2021-02-16 06:45:10 +00:00
|
|
|
pkgdesc="Mainline Kernel fork for SDM845 devices"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
2021-05-21 01:51:10 +00:00
|
|
|
url="https://gitlab.com/sdm845-mainline/linux"
|
2021-02-16 06:45:10 +00:00
|
|
|
license="GPL-2.0-only"
|
2021-07-10 00:21:06 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
|
|
|
pmb:kconfigcheck-nftables
|
|
|
|
pmb:kconfigcheck-containers
|
|
|
|
pmb:kconfigcheck-zram
|
2021-11-17 01:56:35 +00:00
|
|
|
pmb:kconfigcheck-anbox
|
|
|
|
pmb:kconfigcheck-iwd"
|
2022-08-01 16:48:43 +00:00
|
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl"
|
2021-02-16 06:45:10 +00:00
|
|
|
|
|
|
|
_config="config-$_flavor.$arch"
|
2022-09-01 10:50:27 +00:00
|
|
|
_tag="sdm845-5.19.7"
|
2021-02-16 06:45:10 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
source="
|
2022-08-01 16:09:14 +00:00
|
|
|
linux-$_tag.tar.gz::https://gitlab.com/sdm845-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz
|
2021-02-16 06:45:10 +00:00
|
|
|
$_config
|
|
|
|
"
|
2022-08-01 16:09:14 +00:00
|
|
|
builddir="$srcdir/linux-$_tag"
|
2021-02-16 06:45:10 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2021-05-12 17:44:20 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
2021-02-16 06:45:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
2021-07-19 22:21:08 +00:00
|
|
|
|
|
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
2021-09-08 20:32:39 +00:00
|
|
|
"$pkgdir/boot/vmlinuz"
|
2021-07-19 22:21:08 +00:00
|
|
|
|
|
|
|
make modules_install dtbs_install \
|
2021-02-16 06:45:10 +00:00
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot/ \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_MOD_STRIP=1 \
|
|
|
|
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-05-07 09:50:55 +00:00
|
|
|
sha512sums="
|
2022-09-01 10:50:27 +00:00
|
|
|
efd6acd08d29490490fa81be57a302fffc04f14e060d0b7ed61371408c3a81749444f16349d2f803d491a2d4720c54bb34828d762c4e9d76dfb8b3084a8e8634 linux-sdm845-5.19.7.tar.gz
|
|
|
|
357c34d9853a95dd77e8f0b8265f7fdc8ac6c64cd9e15c4b86d37e88dc10bb69b8ca612f45304c8b6e956e41ff8dd3028171471af950a1af67f4eda22c9df03f config-postmarketos-qcom-sdm845.aarch64
|
2021-05-07 09:50:55 +00:00
|
|
|
"
|