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

73 lines
1.9 KiB
Text
Raw Normal View History

# Maintainer: Ultracoolguy <ultracoolguy@disroot.org>
# Kernel config based on: defconfig, msm8953.config, and device configs
_flavor="postmarketos-qcom-msm8953"
pkgname=linux-$_flavor
pkgver=6.1.0
pkgrel=1
pkgdesc="Close to mainline linux kernel for Qualcomm Snapdragon MSM8953"
arch="aarch64"
url="https://github.com/msm8953-mainline/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-containers
pmb:kconfigcheck-iwd
pmb:kconfigcheck-nftables
pmb:kconfigcheck-waydroid
"
makedepends="
bash
bison
findutils
flex
openssl-dev
perl
postmarketos-installkernel
"
# Source
_commit="b5b016f951f44dcc5a584d31843ea7e0ce5bf1c2"
source="
$pkgname-$_commit.tar.gz::https://github.com/msm8953-mainline/linux/archive/$_commit.tar.gz
config-$_flavor.aarch64
"
_carch="arm64"
builddir="$srcdir/linux-$_commit"
prepare() {
default_prepare
cp -v "$srcdir/config-$_flavor.$CARCH" "$builddir"/.config
}
build() {
unset LDFLAGS
# V=1: workaround for pma#1990
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" \
V=1
}
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 -Dm644 "$builddir/include/config/kernel.release" \
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
}
sha512sums="
3dfa002828db13baa9beb59aa7512051cec149924c2e29cc6ae87938ee6fe74b9ac013e0fb62e4be7213666f700b6e37f0d27b2bb860a54b4f0649f55e4a9590 linux-postmarketos-qcom-msm8953-b5b016f951f44dcc5a584d31843ea7e0ce5bf1c2.tar.gz
4d39e837a6fdaf8022197c76bafbe5f87ab3cf82ceff10a86b029510cd1acb9ffa0476245046f09228f539439b02b40a6f93be1c79ff215d340a32e58cdbc6f5 config-postmarketos-qcom-msm8953.aarch64
"