pmaports/device/testing/linux-postmarketos-qcom-sc7280/APKBUILD
Luca Weiss daabd8fce2
linux-postmarketos-qcom-sc7280: upgrade to 6.6.0 (MR 4518)
[ci:skip-build]: already built successfully in CI
2023-10-30 11:38:57 +01:00

59 lines
1.6 KiB
Text

# Maintainer: Luca Weiss <luca@z3ntu.xyz>
_flavor="postmarketos-qcom-sc7280"
pkgname=linux-$_flavor
pkgver=6.6.0
pkgrel=0
pkgdesc="Mainline Kernel fork for SC7280/SM7325/QCM6490 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"
_tag="v$pkgver-sc7280"
# Source
source="
https://github.com/z3ntu/$_repo/archive/refs/tags/$_tag/$_repo-$_tag.tar.gz
$_config
"
builddir="$srcdir/$_repo-$pkgver-sc7280"
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="
c07c56d25897c060dd33f78af7e1858d1c8a9f9db06ea3b6cf306078cbf52b6e764a4acdf6ba02201a5925cf068bd1893b024da8d2f28f6f3963183e191a2cf6 linux-v6.6.0-sc7280.tar.gz
748a8808768a22c376ba49f8ef422f9f66808e0ccbcbde2107f8725774d571cb4636c2b2874225e35efeaa1d6b6e6a606e4463dd7e87ae1586dab60f07a110a4 config-postmarketos-qcom-sc7280.aarch64
"