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

67 lines
1.7 KiB
Text
Raw Normal View History

# Maintainer: M0Rf30 <morf3089@gmail.com>
# Co-Maintainer: Ultra-azu <ultra.public@proton.me>
# Co-Maintainer: Barnabas Czeman <trabarni@gmail.com>
# Kernel config based on: defconfig, msm8953.config, and device configs
_flavor="postmarketos-qcom-msm8953"
pkgname=linux-$_flavor
pkgver=6.9.1
pkgrel=0
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
"
_tag="$pkgver-r0"
source="
$pkgname-v$_tag.tar.gz::$url/archive/v$_tag.tar.gz
config-$_flavor.aarch64
"
builddir="$srcdir/linux-$_tag"
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="
3ebeff8994b7cc40ac94e6ea496544428fadf3eb88e586e81a858b8dfa56f8ddee00561989e4133af0ed9987a12098dc31f04913a28d4e791e84803b6c4ec9d5 linux-postmarketos-qcom-msm8953-v6.9.1-r0.tar.gz
dfee580c6fed4e48984ce4c30021ca05252cc58cc2e3f4413b26cf09d5b9dc882e05f5748d6f97b729cf1552c1595780439a064f07ee76214ad92b6057252189 config-postmarketos-qcom-msm8953.aarch64
"