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-07-19 22:21:08 +00:00
|
|
|
pkgver=5.14.0_rc6
|
2021-07-10 00:21:06 +00:00
|
|
|
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
|
|
|
|
pmb:kconfigcheck-anbox"
|
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"
|
2021-07-19 22:21:08 +00:00
|
|
|
_commit="a620c228c986589ced2cd9369fbce10d219eb0df"
|
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
|
2021-07-19 22:21:08 +00:00
|
|
|
|
|
|
|
# Avoids requirement that LOCALVERSION=flavor
|
|
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
|
|
|
"$pkgdir/boot/vmlinuz-$_flavor"
|
|
|
|
|
|
|
|
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="
|
2021-07-19 22:21:08 +00:00
|
|
|
b5bfa1b9573e6d0c56312056264f86c3b8bd3ba6365c4a4705418136df20477dc6d83b83478d5537a241bf2fdc7e01201d22a8fc05aa526d2b998583f8218e27 linux-a620c228c986589ced2cd9369fbce10d219eb0df.tar.gz
|
|
|
|
c2a5c4795171dd795e0ac63ee002459d619e0fc122e63f01c900962ee9a78dce899835c8916f72d2603d94dc98da8e3ed7424235aab557d4d92c016db3e9530d config-postmarketos-qcom-sdm845.aarch64
|
2021-05-07 09:50:55 +00:00
|
|
|
"
|