2020-01-10 10:32:51 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2017-09-04 17:11:42 +00:00
|
|
|
pkgname=device-huawei-angler
|
2022-04-14 18:32:19 +00:00
|
|
|
pkgver=3
|
2024-06-18 19:53:59 +00:00
|
|
|
pkgrel=6
|
2017-09-04 17:11:42 +00:00
|
|
|
pkgdesc="Huawei Nexus 6P"
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2018-11-07 06:45:58 +00:00
|
|
|
arch="aarch64"
|
2017-09-04 17:11:42 +00:00
|
|
|
license="MIT"
|
2021-10-12 18:56:48 +00:00
|
|
|
depends="
|
|
|
|
mkbootimg
|
|
|
|
msm-fb-refresher
|
|
|
|
postmarketos-base
|
|
|
|
"
|
2020-01-10 10:32:51 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2021-10-12 18:56:48 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
2017-09-27 17:41:25 +00:00
|
|
|
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
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2017-09-04 17:11:42 +00:00
|
|
|
|
2020-01-10 10:32:51 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2021-10-12 18:56:48 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2017-09-04 17:11:42 +00:00
|
|
|
package() {
|
2020-01-10 10:32:51 +00:00
|
|
|
devicepkg_package $startdir $pkgname
|
2017-09-11 15:29:22 +00:00
|
|
|
install -D -m644 "$srcdir"/90-android-touch-dev.rules \
|
|
|
|
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
|
2017-09-27 17:41:25 +00:00
|
|
|
install -D -m644 "$srcdir"/bcmdhd.cal \
|
|
|
|
"$pkgdir"/etc/wifi/bcmdhd.cal
|
2017-09-04 17:11:42 +00:00
|
|
|
}
|
|
|
|
|
2018-02-26 22:11:44 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi firmware"
|
|
|
|
depends="firmware-aosp-broadcom-wlan"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-09-18 17:06:03 +00:00
|
|
|
sha512sums="
|
2024-06-18 19:53:59 +00:00
|
|
|
c4e51436ee4d5ba0586eaaac5a1214fda0cfa371e217612ed5c3ab1be832056f75b7c96d3c613155d5728c0aaf94d22c8f27c15706a18bf1027a1f4878f19bfd deviceinfo
|
2017-10-17 20:38:47 +00:00
|
|
|
262f9f3e28cbb28d236cf6edce4919766baabb18e5b0cf35d672d306efeaf12fd66ffba57e6d9bef0eee90203dc98f95aab17145e4c12383055afb58b922ae58 90-android-touch-dev.rules
|
2021-09-18 17:06:03 +00:00
|
|
|
61fe1f91d7b0b570b77fcca76503373cbac2515ca3dcc2f2543b910dfaeb1e935a11975f824f6a72001df4e63329356a6aff2d016e9b4f5d8f7b739fee065c4e bcmdhd.cal
|
|
|
|
"
|