pmaports/device/testing/linux-postmarketos-qcom-msm8953/APKBUILD
M0Rf30 0acc5220a8
linux-postmarketos-qcom-msm8953: general maintenance update (MR 4197)
This sports:
  - PM8953 GPIO enablement
  - missing properties for motorola-aliIt
  - re-generated panels
  - Xiaomi Redmi S2/Y2 (xiaomi-ysl) support
  - PM8953 thermal zone enablement
  - enable modem on Fairphone FP3

[ci:skip-build]: already built successfully in CI
2023-06-27 09:08:21 +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=3
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="285c565848653c036e2a507f5612382698deac50"
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="
cb9c12383a938c39ed659d83c646ab91fe289a52f3cdcca77f456ff963338c87c3beb572740d7d3b934a10fb7bce519ff2347a7ad15870c6d2d88c6df2820001 linux-postmarketos-qcom-msm8953-285c565848653c036e2a507f5612382698deac50.tar.gz
9249aa3d1b6c554ecae1b6a82160448d68e4b221b34a1c200eb2ddaeafcb6855a4c558a0282de79fec995e553d31296b0de29d73f12035cef1c5d4cc9c711817 config-postmarketos-qcom-msm8953.aarch64
"