pmaports/device/community/linux-postmarketos-qcom-msm8916/APKBUILD
Minecrell b6f5f2c5b3
linux-postmarketos-qcom-msm8916: upgrade to 6.5.2 (MR 4389)
- Update to Linux v6.5.2
- Improve charging speed/behavior for SMB1360 battery driver
  (alcatel-idol347, bq-paella, xiaomi-wt88047, alcatel-idol3,
   bq-piccolo)
- Add RT5033 charger driver and OTG support
  (samsung-serranove, samsung-a3, samsung-a5, samsung-e5,
   samsung-e7, samsung-grandmax, samsung-a7, samsung-heatqlte,
   samsung-cprime, samsung-gprime/fortuna)
- Major cleanup of all device trees in preparation of upstreaming
- Potential display fixes for some UIs (e.g. XFCE)

Device changes:
  - acer-a1-724: Add display
  - bq-paella:
    - Add flash LED
    - Fix multi-touch for touch keys
  - samsung-grandmax: Disable broken secondary microphone
  - ufi (USB modem dongles): Allow switching to USB host mode

New devices:
  - acer-t01 (MSM8909)
    - eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
    - No display yet
    - Brightness control, LEDs
    - Touchscreen
    - Sensors (Accelerometer)
    - Battery/charging
    - Flash LED
2023-09-12 09:12:48 +02:00

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.5.2
# 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="
3a978b42c3a1a2c66f6de98941610428f7fd4a39edba48c83dd766b7bcd0419e9dd57380457bce61fcf6c151d1a030e324e5a4d3c0b78ef88578c1879d67dedf linux-postmarketos-qcom-msm8916-v6.5.2-msm8916.tar.gz
a049c50f94a8b61677f1e42f0df98950a4d90bee999a397fd75d3fb945136c84e45bf57ecb03d0dd5c65999d1a31c2e103c3894635e37fd675ef32a3fbd87527 config-postmarketos-qcom-msm8916.aarch64
995eb2a838312cefd75130f257ff191998eae6418a95682de5711527335bb4366a2b2e9963cb7c2d1ea9fb3e0fcc45301551fcd412c5310faf2fed72250900ec config-postmarketos-qcom-msm8916.armv7
"