pmaports/device/testing/linux-postmarketos-qcom-msm8953/APKBUILD
M0Rf30 81594d2745
linux-postmarketos-qcom-msm8953: enable soundcard on xiaomi-vince (MR 4226)
[ci:skip-build]: already built successfully in CI
2023-07-05 09:57:18 +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=5
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="87d49296516480dcdc7c9fd7223be428bf0804b8"
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="
98296a09d0fb61af6e3842f1fa82d721f2204c3a1bee0ee676482736e0045420dbc67242a898092b0628018cc0aa4a1647dc24649a622b39dc18e261a8cf56bb linux-postmarketos-qcom-msm8953-87d49296516480dcdc7c9fd7223be428bf0804b8.tar.gz
9249aa3d1b6c554ecae1b6a82160448d68e4b221b34a1c200eb2ddaeafcb6855a4c558a0282de79fec995e553d31296b0de29d73f12035cef1c5d4cc9c711817 config-postmarketos-qcom-msm8953.aarch64
"