pmaports/main/linux-postmarketos-qcom-msm8974/APKBUILD
Oleg `Kanedias` Chernovskiy e07b778502
linux-postmarketos-qcom-msm8974: battery support for oneplus-bacon (MR 2154)
BQ27541 is used as fuelgauge/charger on oneplus-bacon.

[ci:skip-build] Already built on CI
2021-05-08 02:20:34 +03:00

57 lines
1.6 KiB
Text

# Maintainer: Luca Weiss <luca@z3ntu.xyz>
_flavor=postmarketos-qcom-msm8974
_config="config-$_flavor.$CARCH"
pkgname=linux-$_flavor
pkgver=5.11.10
pkgrel=1
_commit="6596dc8d512c7c102077913c85cdec16d21c855b"
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8974 devices"
arch="armv7"
_carch="arm"
url="https://kernel.org/"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="
bison
findutils
flex
gmp-dev
installkernel
mpc1-dev
mpfr-dev
openssl-dev
perl
"
source="https://gitlab.com/postmarketOS/linux-postmarketos/-/archive/$_commit/linux-postmarketos-$_commit.tar.gz
config-$_flavor.armv7
"
builddir="$srcdir/linux-postmarketos-$_commit"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$CARCH" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
}
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"/usr/share/dtb
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
install -D "$builddir/include/config/kernel.release" \
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
}
sha512sums="1a2f045860315b64b4983ac8c98e8befd27c1a82b109f12190f7dc70e7dc2584adbddbf982486d5b8db914e445a4fa015c747bf68881fd579d2690487fb795dc linux-postmarketos-$_commit.tar.gz
2e12bb87e4193acf99709630266c133f78ef5ab982f6ab313c5c0bbd0be400c05cb9c9279d302378f96c9e99c9adaf2e5fc52a0f252492937997d572524c76f5 config-postmarketos-qcom-msm8974.armv7"