6c2de41538
- Update to Linux v6.6 - Lots of cleanup and upstreaming, more than 40 commits upstreamed for 6.7 Device changes: - Add KTD2026 LED driver, used by bq-paella, bq-piccolo and acer-a1-724 - bq-piccolo: Set proximity near level to fix detection in iio-sensor-proxy New devices: - Vivo Y21L - eMMC, SD card, USB, Buttons, WiFi/BT - Sensors (Accelerometer, Magnetometer, Light) - No display yet [ci:skip-build]: already built successfully in CI
77 lines
2.3 KiB
Text
77 lines
2.3 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=6.6
|
|
# When making kernel config changes please also submit a PR to
|
|
# https://github.com/msm8916-mainline/linux/blob/master/kernel/configs/pmos.config
|
|
# since the kernel config is regenerated on upgrades and all changes will be lost!
|
|
pkgrel=0
|
|
pkgdesc="Mainline kernel fork for Qualcomm MSM8909/MSM8916/MSM8939 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
|
|
"
|
|
replaces="linux-postmarketos-qcom-msm8909 linux-postmarketos-qcom-msm8939"
|
|
|
|
# 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"/boot/dtbs
|
|
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="
|
|
5fbbdf333412667e0a0e38dcc7e83f640bd5a1e0b07e1c7786ff3e18f17b9cdec088936263d68986b3869ee305cfcecdf22970134ca8fb8d2a2769874a5a4676 linux-postmarketos-qcom-msm8916-v6.6-msm8916.tar.gz
|
|
d37f79ea1db791f9ab1f76f6f116d359e24b2f88904620f2f69b75b22ef2024f5efe00cf826fa237ee6d02418349a41c18221c85d1260fb2044a44b29e6be6a4 config-postmarketos-qcom-msm8916.aarch64
|
|
3f91cc0639da34f04aa2b18616daf87dc21ade07b2887d1f3d2238ae0bfdf280b2d9a90a8e4977c93d4c597bb171639a48843d27e379697455b7f420704309a0 config-postmarketos-qcom-msm8916.armv7
|
|
"
|