pmaports/device/testing/linux-postmarketos-qcom-msm8953/APKBUILD
Ultracoolguy c2102de737
linux-postmarketos-qcom-msm8953: upgrade to 5.16 (MR 2960)
[ci:skip-build] Already built on CI in MR
2022-03-03 11:20:52 +03:00

61 lines
1.7 KiB
Text

# Maintainer: Ultracoolguy <ultracoolguy@disroot.org>
# Kernel config based on: defconfig, msm8953.config, and device configs
_flavor="postmarketos-qcom-msm8953"
pkgname=linux-$_flavor
pkgver=5.16
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
pmb:kconfigcheck-nftables
"
makedepends="
bison
findutils
flex
openssl-dev
perl
postmarketos-installkernel
"
_carch="arm64"
# Source
_commit="3c92505f52f1b80b8bbd2332d8f5cb567200018f"
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="
ccd28b448f31faebe9ae0ae699bff6e9afa149908d03b10c47ee57bac6453cc00ab7c403c0aaddc3d2b2b41879d5092f2989e89881ec1bdc9e6201ec261c167c linux-postmarketos-qcom-msm8953-3c92505f52f1b80b8bbd2332d8f5cb567200018f.tar.gz
60811a61cf10aca1ada6a559ee3fdc07a4f97a3cd3252ae1856c370e5a983dee9c6b8013a0302527d3ec7d9e2f39df68d17d657da735b022b3ce4d35a50f1f03 config-postmarketos-qcom-msm8953.aarch64
"