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

66 lines
1.7 KiB
Text

# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/defconfig
_flavor="postmarketos-qcom-sm8250"
pkgname=linux-$_flavor
pkgver=6.9.0
pkgrel=2
pkgdesc="Mainline kernel fork for SM8250"
arch="aarch64"
_carch="arm64"
url="https://gitlab.com/sm8250-mainline/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-nftables
pmb:kconfigcheck-community
"
makedepends="
bash
bison
findutils
flex
openssl-dev
perl
postmarketos-installkernel
"
# Source
_tag="sm8250-$pkgver"
_config="config-$_flavor.$arch"
source="
$pkgname-$_tag.tar.gz::https://gitlab.com/sm8250-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz
$_config
"
builddir="$srcdir/linux-$_tag"
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="
ebc5b88e52d8b64d51caacd74fe0e32c5fb59e5f47ed28b715ca5857e876306835734fe8067cdacecc86e4d89f9f01127e4ede723d9ecd623ce0e188ddbb863b linux-postmarketos-qcom-sm8250-sm8250-6.9.0.tar.gz
e7267ce492bdb04151e61ec323ca68f4ded4e6579808ae8d25e266624b62884bc3f0960d86d5010c813ddf9b1fb8c8bab066b33c752e1ecaea75df98d7bb8efb config-postmarketos-qcom-sm8250.aarch64
"