2020-01-15 20:26:34 +00:00
|
|
|
# Maintainer: Minecrell <minecrell@minecrell.net>
|
2021-09-18 18:29:09 +00:00
|
|
|
# Co-Maintainer: Nikita Travkin <nikita@trvn.ru>
|
2019-06-23 10:58:45 +00:00
|
|
|
# Kernel config based on: arch/arm64/configs/msm8916_defconfig
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-msm8916"
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-$_flavor
|
2023-10-30 14:31:39 +00:00
|
|
|
pkgver=6.6
|
2022-10-13 08:04:52 +00:00
|
|
|
# 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!
|
2024-07-28 15:10:53 +00:00
|
|
|
pkgrel=6
|
community/linux-postmarketos-qcom-msm8916: upgrade to 6.1 (MR 3718)
- Update to Linux v6.1
- Initial support for MSM8905/MSM8909 and MSM8939 SoCs
- Various kernel configuration tweaks
- Disabled support for system suspend since it provides little advantages
at the moment and keeps causing trouble (device fails to wake up etc).
Device changes:
- alcatel-idol347
- Torch/indicator LEDs
- samsung-a3 and a5
- Vibrator
- samsung-cprime and grandmax
- Touchscreen
- wingtech-wt865x8 (lenovo-a6000/a6010)
- qimei-ili9881 panel driver
- wingtech-wt88047 (xiaomi-wt88047)
- Flash LED
New devices:
- alcatel-idol3 (MSM8939)
- eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
- Display, Brightness control
- Touchscreen
- Sensors (Accelerometer, Magnetometer, Gyroscope, Proximity)
- Sound/Modem
- Battery/Charging
- Torch/indicator LEDs
- huawei-kiwi (MSM8939)
- eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
- Display, Brightness control
- Touchscreen
- Sensors (Accelerometer, Magnetometer, Proximity, Hall)
- Sound
- Indicator LEDs
- longcheer-l9100 (bq-piccolo, MSM8939)
- eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
- Display, Brightness control
- Touchscreen
- Sensors (Accelerometer/Gyroscope/IMU, Magnetometer, Light, Hall)
- Battery/Charging
- Flash LED
- samsung-a7 (MSM8939)
- eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
- Display (with some quirks)
- Touchscreen, touch keys
- Sensors (Accelerometer, Magnetometer, Hall)
- Sound/Modem
- Battery status
- NFC
- nokia-argon/leo/sparkler (MSM8905)
- eMMC, SD card, USB, Keypad/Buttons, WiFi/BT, Vibrator (argon-only)
- Display, Brightness control
- Modem
- Battery/Charging
[ci:skip-build] already built successfully in CI
2022-12-12 11:19:46 +00:00
|
|
|
pkgdesc="Mainline kernel fork for Qualcomm MSM8909/MSM8916/MSM8939 devices"
|
2019-12-07 14:00:13 +00:00
|
|
|
arch="aarch64 armv7"
|
2019-06-23 10:58:45 +00:00
|
|
|
url="https://github.com/msm8916-mainline/linux"
|
|
|
|
license="GPL-2.0-only"
|
2021-10-12 01:11:51 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
2022-09-07 20:43:05 +00:00
|
|
|
pmb:kconfigcheck-community
|
2024-03-24 13:39:33 +00:00
|
|
|
pmb:kconfigcheck-uefi
|
2021-10-12 01:11:51 +00:00
|
|
|
"
|
|
|
|
makedepends="
|
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
flex
|
|
|
|
gmp-dev
|
|
|
|
mpc1-dev
|
|
|
|
mpfr-dev
|
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
postmarketos-installkernel
|
|
|
|
"
|
community/linux-postmarketos-qcom-msm8916: upgrade to 6.1 (MR 3718)
- Update to Linux v6.1
- Initial support for MSM8905/MSM8909 and MSM8939 SoCs
- Various kernel configuration tweaks
- Disabled support for system suspend since it provides little advantages
at the moment and keeps causing trouble (device fails to wake up etc).
Device changes:
- alcatel-idol347
- Torch/indicator LEDs
- samsung-a3 and a5
- Vibrator
- samsung-cprime and grandmax
- Touchscreen
- wingtech-wt865x8 (lenovo-a6000/a6010)
- qimei-ili9881 panel driver
- wingtech-wt88047 (xiaomi-wt88047)
- Flash LED
New devices:
- alcatel-idol3 (MSM8939)
- eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
- Display, Brightness control
- Touchscreen
- Sensors (Accelerometer, Magnetometer, Gyroscope, Proximity)
- Sound/Modem
- Battery/Charging
- Torch/indicator LEDs
- huawei-kiwi (MSM8939)
- eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
- Display, Brightness control
- Touchscreen
- Sensors (Accelerometer, Magnetometer, Proximity, Hall)
- Sound
- Indicator LEDs
- longcheer-l9100 (bq-piccolo, MSM8939)
- eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
- Display, Brightness control
- Touchscreen
- Sensors (Accelerometer/Gyroscope/IMU, Magnetometer, Light, Hall)
- Battery/Charging
- Flash LED
- samsung-a7 (MSM8939)
- eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
- Display (with some quirks)
- Touchscreen, touch keys
- Sensors (Accelerometer, Magnetometer, Hall)
- Sound/Modem
- Battery status
- NFC
- nokia-argon/leo/sparkler (MSM8905)
- eMMC, SD card, USB, Keypad/Buttons, WiFi/BT, Vibrator (argon-only)
- Display, Brightness control
- Modem
- Battery/Charging
[ci:skip-build] already built successfully in CI
2022-12-12 11:19:46 +00:00
|
|
|
replaces="linux-postmarketos-qcom-msm8909 linux-postmarketos-qcom-msm8939"
|
2019-06-23 10:58:45 +00:00
|
|
|
|
2019-12-07 14:00:13 +00:00
|
|
|
# Architecture
|
|
|
|
case "$CARCH" in
|
|
|
|
aarch64) _carch="arm64" ;;
|
|
|
|
arm*) _carch="arm" ;;
|
|
|
|
esac
|
|
|
|
|
2019-06-23 10:58:45 +00:00
|
|
|
# Source
|
2019-12-23 11:47:03 +00:00
|
|
|
_tag=v${pkgver//_/-}-msm8916
|
2019-06-23 10:58:45 +00:00
|
|
|
source="
|
|
|
|
$pkgname-$_tag.tar.gz::$url/archive/$_tag.tar.gz
|
2019-12-07 14:00:13 +00:00
|
|
|
config-$_flavor.aarch64
|
|
|
|
config-$_flavor.armv7
|
2019-06-23 10:58:45 +00:00
|
|
|
"
|
|
|
|
builddir="$srcdir/linux-${_tag#v}"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2019-12-07 14:00:13 +00:00
|
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
2019-06-23 10:58:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
2024-03-24 13:39:33 +00:00
|
|
|
|
|
|
|
_install_targets="modules_install dtbs_install"
|
|
|
|
|
|
|
|
if [ -e "$builddir/arch/$_carch/boot/vmlinuz.efi" ]; then
|
|
|
|
# ZBOOT EFI decompressor for EFI booting
|
|
|
|
install -Dm644 "$builddir/arch/$_carch/boot/vmlinuz.efi" \
|
|
|
|
"$pkgdir/boot/linux.efi"
|
|
|
|
|
|
|
|
# Old GZIP'd kernel image for boot.img compatibility
|
|
|
|
install -Dm644 "$builddir/arch/$_carch/boot/vmlinuz" \
|
|
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
elif [ "$_carch" = "arm64" ]; then
|
|
|
|
echo "WARNING: CONFIG_ZBOOT not enabled!"
|
|
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
|
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
else
|
|
|
|
_install_targets="zinstall modules_install dtbs_install"
|
|
|
|
fi
|
|
|
|
|
|
|
|
make $_install_targets \
|
2019-06-23 10:58:45 +00:00
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
main/linux-postmarketos-qcom-msm8916: upgrade to 5.11.7 (MR 2039)
- Update to Linux 5.11.7
- Upstreamed more patches
- Switch BAM DMUX (mobile data) driver to Raw-IP mode.
This makes it work with the upstream version of ModemManager,
reduces overhead a bit and is overall cleaner.
- Add QMI "memshare" driver which is needed for GPS to work on most
MSM8916 devices.
- GPS has been tested successfully on:
- alcatel-idol347
- lg-m216
- longcheer-l8150 (wileyfox-crackling)
- longcheer-l8910 (bq-paella)
- motorola-harpia
- motorola-osprey
- samsung-a2015 (a3(u)lte, a5(u)lte)
- samsung-serranovelte
- wingtech-wt88047 (xiaomi-wt88047)
- Needs more testing/investigation on:
- asus-z00l
- asus-z010d
- wingtech-wt865x8
- Add SMB1360 battery/charger/OTG driver for longcheer-l8190
and wingtech-wt88047.
- Rework TFA9895 speaker amplifier driver for potential upstreaming,
make it work for TFA9897, add channel selection and a lot of cleanup.
- Add INSTALL_MOD_STRIP=1 to maybe reduce the size of modules a bit.
- Other things I forgot :)
Device changes:
- alcatel-alto5-vdf: Initial support for Vodafone Smart prime 6
- USB
- Storage (eMMC, SD card)
- Buttons
- WiFi, Bluetooth
- alcatel-idol347: Initial support for Alcatel Idol 3 (4.7")
- USB
- Storage (eMMC, SD card)
- Display, Brightness
- Touchscreen, Buttons, Vibrator
- WiFi, Bluetooth
- Accelerometer, Magnetometer, Gyroscope, Proximity
- Audio (no headphones yet)
- Modem (voice call audio needs some more minor changes)
- asus-z00l
- SD card
- IMU (Accelerometer + Gyroscope), Magnetometer
- lg-m216
- Battery/charging
- longcheer-l8150 (wileyfox-crackling)
- Tweak battery values slightly for 25°C instead of 0°C
- longcheer-l8910 (bq-paella)
- Battery/charging
- USB OTG
- motorola-harpia
- Add panel driver for "boe" panel
- samsung-gt510wifi/matissevewifi:
- Fix touchscreen
- wingtech-wt88047 (xiaomi-wt88047)
- Battery/charging
- USB OTG
[ci:skip-build]: already built successfully in CI
2021-03-18 14:42:48 +00:00
|
|
|
INSTALL_MOD_STRIP=1 \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
2019-06-23 10:58:45 +00:00
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
|
|
}
|
|
|
|
|
2021-06-29 08:30:04 +00:00
|
|
|
sha512sums="
|
2023-10-30 14:31:39 +00:00
|
|
|
5fbbdf333412667e0a0e38dcc7e83f640bd5a1e0b07e1c7786ff3e18f17b9cdec088936263d68986b3869ee305cfcecdf22970134ca8fb8d2a2769874a5a4676 linux-postmarketos-qcom-msm8916-v6.6-msm8916.tar.gz
|
2024-07-28 15:10:53 +00:00
|
|
|
79db0788419e426201d284cd290afadd85448371aba4c61e77017f2584775af6020b97e2ff714d4dbbf44684cc32f9c4d0b3f120b902b1f9455f6f2741558497 config-postmarketos-qcom-msm8916.aarch64
|
2024-05-17 05:32:43 +00:00
|
|
|
76d4ced20c29728e0a949b931b1df1454aee4769dbfa1670d93ebf3ca366529401e8ca8c8e3459996102a07e10e0851bc0511c301ac95785cb09d37b178a73d6 config-postmarketos-qcom-msm8916.armv7
|
2021-06-29 08:30:04 +00:00
|
|
|
"
|