64 lines
2.2 KiB
Text
64 lines
2.2 KiB
Text
# Maintainer: Richard Acayan <mailingradian@gmail.com>
|
|
# Stable Linux kernel with patches for SDM670 devices
|
|
# Kernel config based on: arch/arm64/configs/{defconfig,sdm{670,845}.config}
|
|
|
|
_flavor="postmarketos-qcom-sdm670"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.0.11
|
|
pkgrel=0
|
|
pkgdesc="Mainline Kernel fork for SDM670 devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://gitlab.com/sdm670-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native"
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
_tag="sdm670-v$pkgver"
|
|
|
|
# Source
|
|
source="
|
|
https://gitlab.com/sdm670-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz
|
|
$_config
|
|
0001-arm64-dts-qcom-sdm670-google-sargo-move-modem-firmwa.patch
|
|
0002-arm64-dts-qcom-sdm670-correct-cpu-opps.patch
|
|
"
|
|
builddir="$srcdir/linux-$_tag"
|
|
|
|
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
|
|
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
make modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_PATH="$pkgdir"/boot/ \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_MOD_STRIP=1 \
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
|
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="
|
|
44ab3603219cdec69513ecc6af9fd9b8953971b98e449c63ef8c2c573f7e998814c80781b3843821fb7a3fb84e169497a24bcfbbeae90fa2490b23292bca17f7 linux-sdm670-v6.0.11.tar.gz
|
|
fc5bc750fae5ad4b7adb4ff0ae3d552fddfe770778a634dd563e8ca3426c31afb133d5e37fffa71a4892034812727e6873809e520f2c59240720d62254374f39 config-postmarketos-qcom-sdm670.aarch64
|
|
ad7bf5cae1aa087b0a49f1af3f4ce6d4ccfc004951055f699053063437e192779e8cac74a5d7d30bafe0328645673fba4ef64019b424ade1a8f6738416030089 0001-arm64-dts-qcom-sdm670-google-sargo-move-modem-firmwa.patch
|
|
17b8cee58f2a275a0103f8f4625189ba2abc98959cc1210f3f14d92cf72de03cac84e43020d45f876ee900b12c42e5b802096b30ca96a9a75cfc202d5310b472 0002-arm64-dts-qcom-sdm670-correct-cpu-opps.patch
|
|
"
|