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
|
2021-05-07 09:50:55 +00:00
|
|
|
pkgver=5.12
|
2021-05-21 01:51:10 +00:00
|
|
|
pkgrel=2
|
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"
|
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
|
|
|
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"
|
2021-05-07 09:50:55 +00:00
|
|
|
_commit="b7a1e57f78d690d02aff902114bf2f6ca978ecfe"
|
2021-02-16 06:45:10 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
source="
|
|
|
|
$_repo-$_commit.tar.gz::https://gitlab.com/sdm845-mainline/$_repo/-/archive/$_commit/$_repo-$_commit.tar.gz
|
|
|
|
$_config
|
|
|
|
"
|
|
|
|
builddir="$srcdir/$_repo-$_commit"
|
|
|
|
|
|
|
|
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
|
|
|
|
make zinstall modules_install dtbs_install \
|
|
|
|
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="
|
2021-05-21 01:51:10 +00:00
|
|
|
e1cb25a9b82ab7ca0f2f54cc0196e683fdb99612475bccaff3527209acdaa45863d12a26a4498f2ce8d0cd63ebdb25f256469d8e5a893e194d44cd41bb8f6170 linux-b7a1e57f78d690d02aff902114bf2f6ca978ecfe.tar.gz
|
2021-05-12 17:44:20 +00:00
|
|
|
5bae2fdd558b29854779e503d8fa125d8de03c8da01cbe40207bacde2e5688178bae2840b85b3733a5dab96d256611c594a6abb70274ed7171224080817ef94b config-postmarketos-qcom-sdm845.aarch64
|
2021-05-07 09:50:55 +00:00
|
|
|
"
|