2021-02-25 11:42:49 +00:00
|
|
|
pkgname=firmware-alcatel-idol347
|
2023-11-13 10:10:20 +00:00
|
|
|
pkgver=4
|
2021-10-19 08:20:17 +00:00
|
|
|
pkgrel=0
|
2021-02-25 11:42:49 +00:00
|
|
|
pkgdesc="Firmware for Alcatel OneTouch Idol 3 (4.7)"
|
|
|
|
url="https://github.com/vknecht/"
|
2021-10-19 08:00:37 +00:00
|
|
|
subpackages="$pkgname-venus $pkgname-wcnss-nv:wcnss_nv"
|
2021-02-25 11:42:49 +00:00
|
|
|
arch="aarch64"
|
|
|
|
license="proprietary"
|
2021-08-28 19:28:14 +00:00
|
|
|
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
2021-10-19 08:20:17 +00:00
|
|
|
makedepends="pil-squasher"
|
2021-02-25 11:42:49 +00:00
|
|
|
_repository="firmware-alcatel-idol347"
|
|
|
|
_commit="28317ed89bb9b568191ce2a6a5f4745a4c67b30f"
|
|
|
|
source="$pkgname-$_commit.tar.gz::$url/$_repository/archive/$_commit.tar.gz"
|
2021-10-19 08:20:17 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2021-02-25 11:42:49 +00:00
|
|
|
|
|
|
|
_fwdir="/lib/firmware/postmarketos"
|
|
|
|
|
2021-10-19 08:20:17 +00:00
|
|
|
build() {
|
|
|
|
# venus.mbn exists already but seems a bit different
|
|
|
|
pil-squasher venus2.mbn venus.mdt
|
|
|
|
}
|
|
|
|
|
2021-02-25 11:42:49 +00:00
|
|
|
package() {
|
|
|
|
# parent package is empty
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
venus() {
|
|
|
|
pkgdesc="Alcatel OneTouch Idol 3 (4.7) video firmware"
|
2021-10-19 08:20:17 +00:00
|
|
|
|
|
|
|
# Linux detects squashed (.mbn) vs non-squashed (.mdt + .b*) based on
|
2023-11-13 10:10:20 +00:00
|
|
|
# file contents, so it is fine to link venus.mbn to venus.mdt
|
|
|
|
# Older kernels look for venus.mdt, newer ones directly for venus.mbn
|
|
|
|
install -Dm644 "$builddir"/venus2.mbn "$subpkgdir/$_fwdir"/qcom/venus-1.8/venus.mbn
|
|
|
|
ln -s venus.mbn "$subpkgdir/$_fwdir"/qcom/venus-1.8/venus.mdt
|
2021-02-25 11:42:49 +00:00
|
|
|
}
|
|
|
|
|
2021-09-22 14:17:50 +00:00
|
|
|
wcnss_nv() {
|
|
|
|
pkgdesc="Alcatel OneTouch Idol 3 (4.7) WiFi/BT firmware configuration"
|
|
|
|
replaces="firmware-alcatel-idol347-wcnss"
|
2021-10-19 08:20:17 +00:00
|
|
|
install -Dm644 "$builddir"/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir"/wlan/prima
|
2021-02-25 11:42:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="2199c08b6e07f1b11579c3acd70a4343e5b6a486b563039383450fc5a74584d3e62df63d5ac32592893460617990d9226b0178e4ebed507569321d027e995872 firmware-alcatel-idol347-28317ed89bb9b568191ce2a6a5f4745a4c67b30f.tar.gz"
|