2c58ce8e45
Replace usages of pmb:kconfigcheck-* options with pmb:kconfigcheck-community which will be required for all devices in community/main category. This ensures more consistent features & behavior across devices.
73 lines
2 KiB
Text
73 lines
2 KiB
Text
# Maintainer: Minecrell <minecrell@minecrell.net>
|
|
# Co-Maintainer: Nikita Travkin <nikita@trvn.ru>
|
|
# Kernel config based on: arch/arm64/configs/msm8916_defconfig
|
|
|
|
_flavor="postmarketos-qcom-msm8916"
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.18
|
|
pkgrel=1
|
|
pkgdesc="Mainline kernel fork for Qualcomm MSM8916 devices"
|
|
arch="aarch64 armv7"
|
|
url="https://github.com/msm8916-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-community
|
|
"
|
|
makedepends="
|
|
bison
|
|
findutils
|
|
flex
|
|
gmp-dev
|
|
mpc1-dev
|
|
mpfr-dev
|
|
openssl-dev
|
|
perl
|
|
postmarketos-installkernel
|
|
"
|
|
|
|
# Architecture
|
|
case "$CARCH" in
|
|
aarch64) _carch="arm64" ;;
|
|
arm*) _carch="arm" ;;
|
|
esac
|
|
|
|
# Source
|
|
_tag=v${pkgver//_/-}-msm8916
|
|
source="
|
|
$pkgname-$_tag.tar.gz::$url/archive/$_tag.tar.gz
|
|
config-$_flavor.aarch64
|
|
config-$_flavor.armv7
|
|
"
|
|
builddir="$srcdir/linux-${_tag#v}"
|
|
|
|
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="
|
|
1433f960797289936f3b7d2aa76e1b299506c3e9db4b2c50b0cc291e3a7ca8eb54c5bde7e26865cad676386ba8795e070b1fed64db1cffb305da18a5f551ecba linux-postmarketos-qcom-msm8916-v5.18-msm8916.tar.gz
|
|
90a692b0ec6b7a2ac9a62accbeda7fc5c0d2ca65ca00d6f6a56ea8aa34c4b3260dac28d3293e61bd7103a69cd0cb54836c525032f776821b4a8d2b10728abe22 config-postmarketos-qcom-msm8916.aarch64
|
|
798e26f2477924e33e5718b71008a14a0b0aa4e674aae3b3ee7f4e920d4b656ddc2669a89793ba02136b15048f077c1738f86286c1d4c9d63ad4b29563345eed config-postmarketos-qcom-msm8916.armv7
|
|
"
|