pmaports/main/linux-postmarketos-qcom-msm8916/APKBUILD

61 lines
1.9 KiB
Text
Raw Normal View History

# Maintainer: Minecrell <minecrell@minecrell.net>
# Kernel config based on: arch/arm64/configs/msm8916_defconfig
_flavor="postmarketos-qcom-msm8916"
pkgname=linux-$_flavor
pkgver=5.14_rc7
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
pkgrel=0
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-anbox pmb:kconfigcheck-containers pmb:kconfigcheck-nftables"
makedepends="bison findutils flex installkernel openssl-dev perl gmp-dev mpc1-dev mpfr-dev"
# 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" \
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 \
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="
32049a56278777abefd9107cac1d0e36db99c1ee73e55ec5eac89047c0f53985ba9807944a624ceab1df15dac2ac01100519231a44c4d164a86ea278a3c9858c linux-postmarketos-qcom-msm8916-v5.14-rc7-msm8916.tar.gz
fbecc9c7e609799fabeb44a0f28ec8ce076fa0daef11cc8b4aab69888aacea78f9f8a96c69d6ef83f9a13cea9c6f1dc1595389c922d4fa03fe73df9c65ae8585 config-postmarketos-qcom-msm8916.aarch64
2aaa4c8658df207f87413cdc45f862edd1c0432913fa7d011d8579d9c952c51f1fbe84c2a4a9736cbdc311082999315c2a9343ca1307ad722b1e6d964e85cd30 config-postmarketos-qcom-msm8916.armv7
"