pmaports/main/linux-postmarketos-qcom-msm8953/APKBUILD

48 lines
1.7 KiB
Text

# Maintainer: Ultracoolguy <myownpersonalaccount@protonmail.com>
# Kernel config based on: arch/arm64/configs/msm8953_defconfig
_flavor="postmarketos-qcom-msm8953"
pkgname=linux-$_flavor
pkgver=5.9_rc7
pkgrel=0
pkgdesc="Mainline kernel fork for Qualcomm MSM8953 devices"
arch="aarch64"
url="https://github.com/msm8953-mainline/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-anbox"
makedepends="bison findutils flex installkernel openssl-dev perl"
_carch="arm64"
# Source
_commit="d20bfe5b386da7df5bd032c5cb578e167fba5129"
source="
$pkgname-$_commit.tar.gz::https://github.com/msm8953-mainline/linux/archive/$_commit.tar.gz
config-$_flavor.$arch
"
builddir="$srcdir/linux-$_commit"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$arch" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
}
package() {
mkdir -p "$pkgdir"/boot
make zinstall modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_PATH="$pkgdir"/boot \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
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="3a1f46a99f542d61c6bd72e04257be010e6153341606a768d311a5129b3fa0461a36f50b6b3dd8dafaa6211251f50835a80582a19288d6a1cc54e10074df1a61 linux-postmarketos-qcom-msm8953-d20bfe5b386da7df5bd032c5cb578e167fba5129.tar.gz
eba86c5eb0eec3ef7f596900c89555eca681f17e61e31f7d2e42d5ff411ca51e0a0a27b17dcc7eae3be5b2f19759b6ca09481b9356a87c36df0186b3b9cbc277 config-postmarketos-qcom-msm8953.aarch64"