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-01-17 16:40:59 +00:00
|
|
|
pkgver=5.16.1
|
2021-12-13 08:54:10 +00:00
|
|
|
pkgrel=1
|
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"
|
2021-02-16 06:45:10 +00:00
|
|
|
makedepends="bison findutils flex installkernel openssl-dev perl"
|
|
|
|
|
2021-05-21 01:51:10 +00:00
|
|
|
_repo="linux"
|
2021-02-16 06:45:10 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2022-01-17 16:40:59 +00:00
|
|
|
_tag="sdm845-5.16.1"
|
2021-02-16 06:45:10 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
source="
|
2021-11-17 01:56:35 +00:00
|
|
|
$_repo-$_tag.tar.gz::https://gitlab.com/sdm845-mainline/$_repo/-/archive/$_tag/$_repo-$_tag.tar.gz
|
2021-02-16 06:45:10 +00:00
|
|
|
$_config
|
|
|
|
"
|
2021-11-17 01:56:35 +00:00
|
|
|
builddir="$srcdir/$_repo-$_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-01-17 16:40:59 +00:00
|
|
|
acf3c0fc424550f35e5e81ece0a845eb80972b881c2335206ac4ca270c3c802e3df6737f4ab1c452e3eaa91747c9f14c35986962e9472981865001eadaddd67a linux-sdm845-5.16.1.tar.gz
|
|
|
|
ca185cd396404d63caaa2da438a48b4c94f84d786a5701648dc0b38c0c5fae14498710006dcfaaedc0ec2aba839bec1538fe37c936dfe44cf4dc71da5f81e077 config-postmarketos-qcom-sdm845.aarch64
|
2021-05-07 09:50:55 +00:00
|
|
|
"
|