firmware-htc-memul: move firmware to device-specific subdirectory (MR 4745)
In mainline Linux these paths will be used, move the firmware packaging there. By doing this we drop downstream support. Support could be restored by adding some symlinks in a downstream-specific package if required. We also start squashing the firmware into .mbn format with pil-squasher. For now we keep the files in _wififiles in their old location, I'm not sure yet where they need to go since I didn't have wcnss working on mainline yet.
This commit is contained in:
parent
28d7319042
commit
0e7f627641
1 changed files with 25 additions and 17 deletions
|
@ -1,11 +1,16 @@
|
||||||
pkgname=firmware-htc-memul
|
pkgname=firmware-htc-memul
|
||||||
pkgver=1
|
pkgver=1
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="Firmware for HTC One Mini 2"
|
pkgdesc="Firmware for HTC One Mini 2"
|
||||||
subpackages="$pkgname-adsp $pkgname-modem $pkgname-wcnss"
|
subpackages="
|
||||||
url="https://postmarketos.org"
|
$pkgname-adsp
|
||||||
|
$pkgname-modem
|
||||||
|
$pkgname-wcnss
|
||||||
|
"
|
||||||
|
url="https://github.com/FairBlobs/memul-firmware"
|
||||||
arch="armv7"
|
arch="armv7"
|
||||||
license="proprietary"
|
license="proprietary"
|
||||||
|
makedepends="pil-squasher"
|
||||||
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
||||||
|
|
||||||
# Sources
|
# Sources
|
||||||
|
@ -19,36 +24,39 @@ for _i in $_wififiles; do
|
||||||
done
|
done
|
||||||
builddir="$srcdir/memul-firmware-$_fw_commit"
|
builddir="$srcdir/memul-firmware-$_fw_commit"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
for i in *.mdt; do
|
||||||
|
pil-squasher "$(basename "$i" .mdt)".mbn "$i"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
# parent package is empty
|
# parent package is empty
|
||||||
mkdir -p "$pkgdir"
|
mkdir -p "$pkgdir"
|
||||||
}
|
}
|
||||||
|
|
||||||
adsp() {
|
adsp() {
|
||||||
pkgdesc="HTC One Mini 2 aDSP firmware"
|
pkgdesc="HTC One Mini 2 - ADSP firmware"
|
||||||
|
|
||||||
cd "$builddir"
|
install -Dm644 "$builddir"/adsp.mbn -t \
|
||||||
for _i in adsp.*; do
|
"$subpkgdir/lib/firmware/qcom/msm8926/memul/"
|
||||||
install -Dm644 $_i "$subpkgdir"/lib/firmware/postmarketos/$_i
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
modem() {
|
modem() {
|
||||||
pkgdesc="HTC One Mini 2 modem firmware"
|
pkgdesc="HTC One Mini 2 - Modem firmware"
|
||||||
|
|
||||||
cd "$builddir"
|
install -Dm644 "$builddir"/mba.mbn -t \
|
||||||
for _i in modem.* mba.*; do
|
"$subpkgdir/lib/firmware/qcom/msm8926/memul/"
|
||||||
install -Dm644 $_i "$subpkgdir"/lib/firmware/postmarketos/$_i
|
install -Dm644 "$builddir"/modem.mbn -t \
|
||||||
done
|
"$subpkgdir/lib/firmware/qcom/msm8926/memul/"
|
||||||
}
|
}
|
||||||
|
|
||||||
wcnss() {
|
wcnss() {
|
||||||
pkgdesc="HTC One Mini 2 Wireless Connectivity Subsystem (WCNSS) firmware"
|
pkgdesc="HTC One Mini 2 - WCNSS firmware"
|
||||||
|
|
||||||
|
install -Dm644 "$builddir"/wcnss.mbn -t \
|
||||||
|
"$subpkgdir/lib/firmware/qcom/msm8926/memul/"
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
for _i in wcnss.*; do
|
|
||||||
install -Dm644 $_i "$subpkgdir"/lib/firmware/postmarketos/$_i
|
|
||||||
done
|
|
||||||
for _i in $_wififiles; do
|
for _i in $_wififiles; do
|
||||||
install -Dm644 "$srcdir/$pkgname-$_dt_commit-$_i" \
|
install -Dm644 "$srcdir/$pkgname-$_dt_commit-$_i" \
|
||||||
"$subpkgdir/lib/firmware/postmarketos/wlan/prima/$_i"
|
"$subpkgdir/lib/firmware/postmarketos/wlan/prima/$_i"
|
||||||
|
|
Loading…
Reference in a new issue