pmaports/device/testing/linux-postmarketos-qcom-sc7280/APKBUILD

60 lines
1.7 KiB
Text
Raw Normal View History

# Maintainer: Luca Weiss <luca@z3ntu.xyz>
_flavor="postmarketos-qcom-sc7280"
pkgname=linux-$_flavor
pkgver=6.6.0_rc4_git20231005
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"
_commit="47fce8de685e2818c6bebe3054ca06bbee177316"
# 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="
022f031cb4eecf851ef88a5b82dca02b9d5bc8303c8ba8b6fb9c033df15e11db00881ef901a373920686e429194ad29acdefdf3d27f9c867f8aaa2f87da06dcc linux-47fce8de685e2818c6bebe3054ca06bbee177316.tar.gz
a43c112b5715b5e958ad1d050144e2fcb26d3a37b401794e265d9ee99dcba9f452a42c43e9590d85348c03d89cae2de5d81069b7b40082dd9ad87de6535a0ade config-postmarketos-qcom-sc7280.aarch64
"