pmaports/device/testing/linux-postmarketos-qcom-msm8953/APKBUILD
M0Rf30 d3fd1f5e3c
linux-postmarketos-qcom-msm8953: enable Samsung S6E3FA7 panel module (MR 4235)
[ci:skip-build]: already built successfully in CI
2023-07-08 19:18:13 +02:00

66 lines
1.8 KiB
Text

# Maintainer: M0Rf30 <morf3089@gmail.com>
# Co-Maintainer: Ultra-azu <ultra.public@proton.me>
# Kernel config based on: defconfig, msm8953.config, and device configs
_flavor="postmarketos-qcom-msm8953"
pkgname=linux-$_flavor
pkgver=6.3.0
pkgrel=7
pkgdesc="Close to mainline linux kernel for Qualcomm Snapdragon MSM8953"
arch="aarch64"
_carch="arm64"
url="https://github.com/msm8953-mainline/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-community
"
makedepends="
bash
bison
findutils
flex
openssl-dev
perl
postmarketos-installkernel
"
# Source
_commit="e968027725388f10fd4255c82c66ee7bb53258e9"
source="
$pkgname-$_commit.tar.gz::https://github.com/msm8953-mainline/linux/archive/$_commit.tar.gz
config-$_flavor.aarch64
"
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 ))-$_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 -Dm644 "$builddir/include/config/kernel.release" \
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
}
sha512sums="
41a79a244ca7cde0f2fce12aef71e2c17f7b4ca42201154588ce1d7a4d4e66afbcb60d02e12e7bb3754185e11142cbfee2f93f400b52b06f1a74962f841f883d linux-postmarketos-qcom-msm8953-e968027725388f10fd4255c82c66ee7bb53258e9.tar.gz
e51ce38b0dc764a0d0b1fa985ac2c019869a0d9d4fcbbb9c81fcd785fa14895de612452a6407c7b15ee0a6750f3d1b0807caaf9efe0f321072fc88c42c36fb0d config-postmarketos-qcom-msm8953.aarch64
"