pmaports/device/testing/linux-postmarketos-qcom-msm8953/APKBUILD
2023-07-03 19:30:59 +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=4
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="91186ea5d7cb4773548dea1e7397f131907e0d91"
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="
99b834c097d7dc1ca183edbc292d4105c770c95c24c2f76315b380acf9c5fc08c557af45a8900355f5aac27415d86be6a564aa03776bc8181b948c8daa34296c linux-postmarketos-qcom-msm8953-91186ea5d7cb4773548dea1e7397f131907e0d91.tar.gz
9249aa3d1b6c554ecae1b6a82160448d68e4b221b34a1c200eb2ddaeafcb6855a4c558a0282de79fec995e553d31296b0de29d73f12035cef1c5d4cc9c711817 config-postmarketos-qcom-msm8953.aarch64
"