motorola-titan: Package wifi firmware (#771)

This commit is contained in:
Pablo Castellano 2017-11-04 23:30:03 +01:00 committed by Oliver Smith
parent e388afd14c
commit fa0769a499
3 changed files with 54 additions and 3 deletions

View File

@ -1,13 +1,13 @@
pkgname=device-motorola-titan
pkgver=1
pkgrel=16
pkgrel=17
pkgdesc="Motorola Moto G 2014"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
depends="linux-motorola-titan mkbootimg msm-fb-refresher"
depends="linux-motorola-titan firmware-motorola-titan mkbootimg msm-fb-refresher"
makedepends=""
install=""
install="$pkgname.post-install"
subpackages="$pkgname-weston"
source="deviceinfo 90-android-touch-dev.rules profile.sh udev-v4l-hack.sh weston.ini"
options="!check"

View File

@ -0,0 +1,16 @@
#!/bin/sh
if [ -z "$(grep /mnt/firmware /etc/fstab)" ]; then
mkdir -p /mnt/firmware
echo "/dev/mmcblk0p1 /mnt/firmware auto ro 0 0" >> /etc/fstab
fi
if [ -z "$(grep /mnt/data /etc/fstab)" ]; then
mkdir -p /mnt/data
echo "/dev/mmcblk0p38 /mnt/data auto ro 0 0" >> /etc/fstab
fi
if [ -z "$(grep /mnt/persist /etc/fstab)" ]; then
mkdir -p /mnt/persist
echo "/dev/mmcblk0p29 /mnt/persist auto ro 0 0" >> /etc/fstab
fi

View File

@ -0,0 +1,35 @@
pkgname=firmware-motorola-titan
pkgver=1
pkgrel=0
pkgdesc="Firmware files for Motorola Moto G 2014 (titan)"
url="https://github.com/postmarketOS"
arch="noarch"
license="proprietary"
depends="wcnss-wlan"
options="!check !strip !archcheck"
# Source
_commit="ac0d15c78cc705c9a76506e6f761cd006018d7bd"
_url="https://github.com/PabloCastellano/vendor_motorola_titan"
source="$pkgname-$_commit.tar.gz::$_url/archive/${_commit}.tar.gz"
package() {
cd "$srcdir/vendor_motorola_titan-$_commit"
# /lib/firmware/postmarketos
_files="wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06 wcnss.b07
wcnss.b08 wcnss.b09 wcnss.mdt"
for _i in $_files; do
install -D -m644 "$_i" "$pkgdir/lib/firmware/postmarketos/$_i"
done
# /lib/firmware/postmarketos/wlan/prima
_files="WCNSS_cfg.dat WCNSS_qcom_cfg.ini WCNSS_qcom_wlan_cal.bin
WCNSS_qcom_wlan_nv.bin"
for _i in $_files; do
install -D -m644 "wlan/prima/$_i" \
"$pkgdir/lib/firmware/postmarketos/wlan/prima/$_i"
done
}
sha512sums="9dce12dda861140b8ac074620e2d4657f59bf7a540935f115db9956076ff770274e486f228b0811ce108862cf6e2beef77c1394a4a950287f19f307f10c9bfc4 firmware-motorola-titan-ac0d15c78cc705c9a76506e6f761cd006018d7bd.tar.gz"