pmaports/device/testing/linux-postmarketos-qcom-sm8150/APKBUILD
Arseniy Velikanov 66af27a144
testing/linux-postmarketos-qcom-sm8150: upgrade to 6.4 (MR 4306)
[ci:skip-build]: Already built successfully in CI
2023-08-11 11:45:06 +02:00

69 lines
1.8 KiB
Text

# Maintainer: Caleb Connolly <caleb@connolly.tech>
# Co-Maintainer: Uclydde <julianbraha@gmail.com>
# Co-Maintainer: Alexey Min <alexeymin@postmarketos.org>
# Stable Linux kernel with patches for SM8150 devices
# Kernel config based on: arch/arm64/configs/defconfig and sm8150.config
_flavor="postmarketos-qcom-sm8150"
pkgname=linux-$_flavor
pkgver=6.4
pkgrel=0
pkgdesc="Mainline Kernel fork for SM8150 devices"
arch="aarch64"
_carch="arm64"
url="https://gitlab.com/sm8150-mainline/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-nftables
"
makedepends="
bison
findutils
flex
openssl-dev
perl
postmarketos-installkernel
xz
"
_repo="linux"
_config="config-$_flavor.$arch"
_commit="93f303701cafa17135d8ee563ffdc39f319783f1"
# Source
source="
$_repo-$_tag.tar.bz2::https://gitlab.com/sm8150-mainline/linux/-/archive/$_commit/linux-$_commit.tar.bz2
$_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() {
mkdir -p "$pkgdir"/boot
make zinstall 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="
fde637d245fa55525763d509caeb038005b419ddddfb28bd5087826c3b38e88126cacee048cdef191c2df67cb421cda19ad125ecaa83e0668de0d848a3f38318 linux-.tar.bz2
d4cebfea2a6230b3293db13853d8b5c5b5434fc7e18e112570fa79702d3d667963017b6d7a0d90d1b437865f177c42ac95d5c8f0e5f1733d4a5f5414f07e3e0f config-postmarketos-qcom-sm8150.aarch64
"