pmaports/device/testing/linux-postmarketos-qcom-sm6115/APKBUILD
Stanislav Zaikin a66a24d941
device-fxtec-qx1050: add initial support with mainline kernel (MR 5350)
Signed-off-by: Stanislav Zaikin <zstaseg@gmail.com>
2024-07-22 22:11:24 +02:00

65 lines
1.7 KiB
Text

pkgname=linux-postmarketos-qcom-sm6115
pkgver=6.10
pkgrel=0
pkgdesc="Mainline Kernel fork for SM6115 devices"
arch="aarch64"
_carch="arm64"
_flavor="postmarketos-qcom-sm6115"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community"
makedepends="
bash
bc
bison
devicepkg-dev
flex
openssl-dev
perl
python3
"
_repository="sm6115_mainline"
_commit="6b7c96d10fc4264724e6b793ac8f1ec72757f885"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/zstas/$_repository/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/$_repository-$_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
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="
b324e8a3a45b8412448bdc414afcdd5cdc79af2d0159a25b0de8fe74797c01c6b6a27ab9f028a506fac27cd484949f7f825fe79e4f96344cd283903884577137 linux-postmarketos-qcom-sm6115-6b7c96d10fc4264724e6b793ac8f1ec72757f885.tar.gz
3bcc5d6ebd9a03f0b50aeb7c6360fd7aa97cb30eb98c985a217749de19b150a1a9bf91d63e3cc48eaf4b17ff6ff2075f1e4bad42abe41201b748ea2378457a41 config-postmarketos-qcom-sm6115.aarch64
"