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

50 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.13_rc4
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="c9d3de23448127d4aa41419e7c9f9f3e757895cc"
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="
e78989f913ebebfb804f84074eff159468dbb9039bc35ab7199a3a2646ee84d5fdcfff9b7b6db59e658eaf50b2df7badd2cc8eefa94328e199922d9e314fa984 linux-postmarketos-qcom-msm8953-c9d3de23448127d4aa41419e7c9f9f3e757895cc.tar.gz
f4a6f4a70dbe304649bc05848e04243b1155b1e6c23027659f05f07a7f415423cb35f6a2a9a243521d29a754290b6cc4b30049c500853e162d8016fb876db954 config-postmarketos-qcom-msm8953.aarch64
"