pmaports/device/testing/device-huawei-angler/APKBUILD
Petr Vorel 891a4cb5a1
linux-postmarketos-qcom-msm8994: upgrade to 5.17.2 (MR 3073)
patches added are (not all, just some) fixes and feature enhancements
for msm8992 and msm8994 from qcom mainline maintainer tree [1] for v5.18
and v5.19.

Changes:
* update deviceinfo_dtb_mainline for device-huawei-angler and
  device-lg-bullhead.
* add sdhc1 support for device-huawei-angler

[1] https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>

[ci:skip-build] Already built successfully in CI in MR
2022-05-01 12:26:18 +03:00

67 lines
2 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-huawei-angler
pkgver=3
pkgrel=0
pkgdesc="Huawei Nexus 6P"
url="https://postmarketos.org"
arch="aarch64"
license="MIT"
depends="
mesa-dri-gallium
mkbootimg
msm-fb-refresher
postmarketos-base
postmarketos-update-kernel
"
makedepends="devicepkg-dev"
subpackages="
$pkgname-kernel-downstream:kernel_downstream
$pkgname-kernel-mainline:kernel_mainline
$pkgname-nonfree-firmware:nonfree_firmware
"
source="
deviceinfo
90-android-touch-dev.rules
bcmdhd.cal
"
# Note: bcmdhd.cal is from https://github.com/LineageOS/android_device_huawei_angler/blob/752aaf664ab079f4ce9cbdeae6978f615d39b783/bcmdhd.cal
# TODO: this calibration file isn't valid for all variants of this device
# See https://github.com/LineageOS/android_device_huawei_angler/blob/cm-14.1/init.angler.rc#L450
options="!check !archcheck"
build() {
devicepkg_build $startdir $pkgname
}
kernel_downstream() {
pkgdesc="Downstream kernel"
depends="linux-huawei-angler"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_mainline() {
pkgdesc="Close to mainline kernel (only basic hardware support)"
depends="linux-postmarketos-qcom-msm8994"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
package() {
devicepkg_package $startdir $pkgname
install -D -m644 "$srcdir"/90-android-touch-dev.rules \
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
install -D -m644 "$srcdir"/bcmdhd.cal \
"$pkgdir"/etc/wifi/bcmdhd.cal
}
nonfree_firmware() {
pkgdesc="Wifi firmware"
depends="firmware-aosp-broadcom-wlan"
mkdir "$subpkgdir"
}
sha512sums="
813fc118a59f50a276a9dbcf627955d65bdef1cd345159cd56b6d45297b467614bfae64687a729295fc189d38b22af45999fb00cf3e02166b2e509beab9965ce deviceinfo
262f9f3e28cbb28d236cf6edce4919766baabb18e5b0cf35d672d306efeaf12fd66ffba57e6d9bef0eee90203dc98f95aab17145e4c12383055afb58b922ae58 90-android-touch-dev.rules
61fe1f91d7b0b570b77fcca76503373cbac2515ca3dcc2f2543b910dfaeb1e935a11975f824f6a72001df4e63329356a6aff2d016e9b4f5d8f7b739fee065c4e bcmdhd.cal
"