2019-09-21 12:16:51 +00:00
|
|
|
pkgname=firmware-htc-memul
|
|
|
|
pkgver=1
|
2024-01-20 18:01:19 +00:00
|
|
|
pkgrel=1
|
2019-09-21 12:16:51 +00:00
|
|
|
pkgdesc="Firmware for HTC One Mini 2"
|
2024-01-20 18:01:19 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-adsp
|
|
|
|
$pkgname-modem
|
|
|
|
$pkgname-wcnss
|
|
|
|
"
|
|
|
|
url="https://github.com/FairBlobs/memul-firmware"
|
2019-09-21 12:16:51 +00:00
|
|
|
arch="armv7"
|
|
|
|
license="proprietary"
|
2024-01-20 18:01:19 +00:00
|
|
|
makedepends="pil-squasher"
|
2021-08-28 19:28:14 +00:00
|
|
|
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
2019-09-21 12:16:51 +00:00
|
|
|
|
|
|
|
# Sources
|
|
|
|
_fw_commit="d89bafbb77277ccc600a34a2b7533be5bf6b278f"
|
|
|
|
source="$pkgname-$_fw_commit.tar.gz::https://github.com/FairBlobs/memul-firmware/archive/$_fw_commit.tar.gz"
|
|
|
|
|
|
|
|
_dt_commit="38db7981457b45d5e834d05bfff49afbea01c25e"
|
|
|
|
_wififiles="WCNSS_cfg.dat WCNSS_qcom_cfg.ini WCNSS_qcom_wlan_nv.bin"
|
|
|
|
for _i in $_wififiles; do
|
|
|
|
source="$source $pkgname-$_dt_commit-$_i::https://raw.githubusercontent.com/nightcore500/android_device_htc_memul/$_dt_commit/wifi/$_i";
|
|
|
|
done
|
|
|
|
builddir="$srcdir/memul-firmware-$_fw_commit"
|
|
|
|
|
2024-01-20 18:01:19 +00:00
|
|
|
build() {
|
|
|
|
for i in *.mdt; do
|
|
|
|
pil-squasher "$(basename "$i" .mdt)".mbn "$i"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2019-09-21 12:16:51 +00:00
|
|
|
package() {
|
|
|
|
# parent package is empty
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
adsp() {
|
2024-01-20 18:01:19 +00:00
|
|
|
pkgdesc="HTC One Mini 2 - ADSP firmware"
|
2019-09-21 12:16:51 +00:00
|
|
|
|
2024-01-20 18:01:19 +00:00
|
|
|
install -Dm644 "$builddir"/adsp.mbn -t \
|
|
|
|
"$subpkgdir/lib/firmware/qcom/msm8926/memul/"
|
2019-09-21 12:16:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
modem() {
|
2024-01-20 18:01:19 +00:00
|
|
|
pkgdesc="HTC One Mini 2 - Modem firmware"
|
2019-09-21 12:16:51 +00:00
|
|
|
|
2024-01-20 18:01:19 +00:00
|
|
|
install -Dm644 "$builddir"/mba.mbn -t \
|
|
|
|
"$subpkgdir/lib/firmware/qcom/msm8926/memul/"
|
|
|
|
install -Dm644 "$builddir"/modem.mbn -t \
|
|
|
|
"$subpkgdir/lib/firmware/qcom/msm8926/memul/"
|
2019-09-21 12:16:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
wcnss() {
|
2024-01-20 18:01:19 +00:00
|
|
|
pkgdesc="HTC One Mini 2 - WCNSS firmware"
|
2019-09-21 12:16:51 +00:00
|
|
|
|
2024-01-20 18:01:19 +00:00
|
|
|
install -Dm644 "$builddir"/wcnss.mbn -t \
|
|
|
|
"$subpkgdir/lib/firmware/qcom/msm8926/memul/"
|
2019-09-21 12:16:51 +00:00
|
|
|
cd "$builddir"
|
|
|
|
for _i in $_wififiles; do
|
|
|
|
install -Dm644 "$srcdir/$pkgname-$_dt_commit-$_i" \
|
|
|
|
"$subpkgdir/lib/firmware/postmarketos/wlan/prima/$_i"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="f55a0639b2857754e456268d3497e8b81b5cf29ae0794f52d0e6b1b1248e0352a0dadda9edace9cbb24b68ca06c9341875d78d23aa1823a72d3adf4bc62eead2 firmware-htc-memul-d89bafbb77277ccc600a34a2b7533be5bf6b278f.tar.gz
|
|
|
|
fb92214f928143228c0683934342ceff11f19bec0581684e98e155262bed03f51c21a21881ec03316f917c127b607a2943efea4847b908f1c02864a1e507fb50 firmware-htc-memul-38db7981457b45d5e834d05bfff49afbea01c25e-WCNSS_cfg.dat
|
|
|
|
925b9d768d17277135aa4446d37996b0b577ec303569bb2c4f83a3c4a75114e0488dacf6bcbd789f584a376f0192ba19720f2ca4e5d438e4227d437d1fd7bd9e firmware-htc-memul-38db7981457b45d5e834d05bfff49afbea01c25e-WCNSS_qcom_cfg.ini
|
|
|
|
0dd92b6f97731e84c0aaa01b0cc1651ada0fa55d279ec436128266a76b52ddb1d45961956f06e0cfd59ac96832e4bc68458999400a40998d0e1fb176a4010391 firmware-htc-memul-38db7981457b45d5e834d05bfff49afbea01c25e-WCNSS_qcom_wlan_nv.bin"
|