9a4a818bde
Make sure the GPU can register its thermal device to avoid this error: [ 9.303081] adreno 3d00000.gpu: [drm:msm_devfreq_init] *ERROR* Couldn't register GPU cooling device [ci:skip-build]: already built successfully in CI
59 lines
1.7 KiB
Text
59 lines
1.7 KiB
Text
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
|
|
_flavor="postmarketos-qcom-sm6350"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.3.0
|
|
pkgrel=1
|
|
pkgdesc="Mainline Kernel fork for SM6350 devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://github.com/z3ntu/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-community
|
|
"
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl"
|
|
|
|
_repo="linux"
|
|
_config="config-$_flavor.$arch"
|
|
_commit="dc6e30ab253042df436c6de494b99d289e93adea"
|
|
|
|
# Source
|
|
source="
|
|
$_repo-$_commit.tar.gz::https://github.com/z3ntu/$_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}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
|
}
|
|
|
|
package() {
|
|
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="
|
|
4fd0efb0279fb263d6052fb34c9df5c8a820896af69f629ae0b7618e1577a803aaff0933a22dc9e6dd189e38d841257a4bd1b10841ad615f75f5976a9fa17bdf linux-dc6e30ab253042df436c6de494b99d289e93adea.tar.gz
|
|
c4264fc7f169e2ddd2bd5d8d5ce81545d474f00fcee37498e8894ea20f279c7984aff429805c9e4f191845d9c01ed33a74a4764850e33632564c769f98ab082f config-postmarketos-qcom-sm6350.aarch64
|
|
"
|