From e41b484d36df40d2ad68e62caf0851f1cbef9362 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 24 Jan 2019 15:57:33 +0100 Subject: [PATCH] motorola-cedric: add wifi firmware (!172) I made a firmware package APKBUILD based on the motorola-titan and added it to the device-motorola-cedric APKBUILD. --- device/device-motorola-cedric/APKBUILD | 8 ++++- firmware/firmware-motorola-cedric/APKBUILD | 36 ++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 firmware/firmware-motorola-cedric/APKBUILD diff --git a/device/device-motorola-cedric/APKBUILD b/device/device-motorola-cedric/APKBUILD index 2e185c4d1..fcc1ffc71 100644 --- a/device/device-motorola-cedric/APKBUILD +++ b/device/device-motorola-cedric/APKBUILD @@ -2,13 +2,14 @@ pkgname="device-motorola-cedric" pkgdesc="Motorola Moto G5" pkgver=0.1 -pkgrel=0 +pkgrel=1 url="https://postmarketos.org" license="MIT" arch="aarch64" options="!check !archcheck" depends="postmarketos-base linux-motorola-cedric mkbootimg mesa-dri-swrast msm-fb-refresher" makedepends="devicepkg-dev" +subpackages="$pkgname-nonfree-firmware:nonfree_firmware" source="deviceinfo initfs-hook.sh" build() { @@ -21,6 +22,11 @@ package() { devicepkg_package $startdir $pkgname } +nonfree_firmware() { + pkgdesc="Wifi firmware" + depends="firmware-motorola-cedric" + mkdir "$subpkgdir" +} sha512sums="89242f5bd55e9c80d80f6439856e280f689b111cae9e7db84f995f4b823cee883e861d33cf88e55072eb83b0640a152c39fb8ec3365e7cf6ccca0f1f16535e4a deviceinfo 371dd1df5fa3b81031c9277b45e1b6dc158c2a71ef519c374aac8fd23792004ed7bd8dcba7c3097e08a571d15313acb732e3716ef57ddc6c11f8cb88b8c91670 initfs-hook.sh" diff --git a/firmware/firmware-motorola-cedric/APKBUILD b/firmware/firmware-motorola-cedric/APKBUILD new file mode 100644 index 000000000..67ae20f54 --- /dev/null +++ b/firmware/firmware-motorola-cedric/APKBUILD @@ -0,0 +1,36 @@ +pkgname=firmware-motorola-cedric +pkgver=1 +pkgrel=0 +pkgdesc="Firmware files for Motorola Moto G5" +url="https://postmarketos.org" +arch="aarch64" +license="proprietary" +depends="wcnss-wlan" +options="!check !strip !archcheck" + +# Source +_commit="5d90d65c31a1d3da14900e553faeedf9af3de689" +_url="https://github.com/Hacker1245/vendor_motorola_cedric/" +source="$pkgname-$_commit.tar.gz::$_url/archive/${_commit}.tar.gz" + +package() { + cd "$srcdir/vendor_motorola_cedric-$_commit" + + # /lib/firmware/postmarketos + _files="wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06 + wcnss.b09 wcnss.b10 wcnss.b11 wcnss.b12 wcnss.mdt" + for _i in $_files; do + install -D -m644 "$_i" "$pkgdir/lib/firmware/postmarketos/$_i" + done + + # /lib/firmware/postmarketos/wlan/prima + _files="WCNSS_qcom_cfg.ini + WCNSS_qcom_wlan_nv.bin WCNSS_wlan_dictionary.dat" + for _i in $_files; do + install -D -m644 "wlan/prima/$_i" \ + "$pkgdir/lib/firmware/postmarketos/wlan/prima/$_i" + done +} + + +sha512sums="24b769e23511ef0b2be67d812d231ec5060954bf77d166e5fbc312e2ed489378abb1729d5a5c157ce98024448f0408edaf983c37f7966b84b6e3de43ac31a961 firmware-motorola-cedric-5d90d65c31a1d3da14900e553faeedf9af3de689.tar.gz"