pmaports/device/testing/device-motorola-osprey/APKBUILD
Minecrell 2f315e3b72
motorola-osprey: use device-specific WCNSS_qcom_wlan_nv.bin (MR 3746)
motorola-osprey can generally use the firmware from motorola-harpia
(which is a bit newer). However, the WCNSS_qcom_wlan_nv.bin is usually
device specific (it contains some kind of calibration values for
WiFi/BT).

The file packaged in firmware-motorola-osprey-wcnss-nv is identical to
the file in firmware-motorola-harpia-wcnss-nv. However, It looks a bit
like this might be a mistake in the source repository
(https://github.com/pmsourcedump/firmware-motorola-osprey). The
wlan/prima folder there is completely identical to the one used for
motorola-harpia, but the stock ROM and LineageOS use different files.

Fix this by packaging the file from TheMuppets. Also modernize the
firmware-motorola-osprey package by applying pil-squasher to the
venus/video firmware.
2022-12-20 08:29:57 +01:00

38 lines
999 B
Text

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-motorola-osprey
pkgver=7
pkgrel=0
pkgdesc="Motorola Moto G 2015"
url="https://postmarketos.org"
arch="aarch64"
license="MIT"
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916
soc-qcom-msm8916 soc-qcom-msm8916-rproc"
makedepends="devicepkg-dev"
source="deviceinfo"
options="!check !archcheck"
_pmb_select="soc-qcom-msm8916-rproc"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
# osprey can use newer venus firmware from harpia
depends="firmware-qcom-adreno-a300 msm-firmware-loader
firmware-motorola-osprey-wcnss-nv firmware-motorola-harpia-venus"
mkdir "$subpkgdir"
}
sha512sums="
e21917fbbbd319bc48e40ab7c06e204fc5b3351ce7f669ccd1dbfc28f8ee7f7249e92a52a2dbbddd9d4aea43f447744b7705369cd65599f8566430ad5525c6fc deviceinfo
"