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.
This commit is contained in:
Unknown 2019-01-24 15:57:33 +01:00 committed by Oliver Smith
parent fd8582fe6c
commit e41b484d36
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
2 changed files with 43 additions and 1 deletions

View File

@ -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"

View File

@ -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"