2018-05-12 13:08:13 +00:00
|
|
|
pkgname=firmware-lg-hammerhead
|
|
|
|
pkgver=1
|
2021-02-03 21:31:51 +00:00
|
|
|
pkgrel=3
|
2020-12-18 23:22:15 +00:00
|
|
|
_modem_commit="d0565ebb2033bbd267b8be698373f075c9a82cd5"
|
2018-05-12 13:08:13 +00:00
|
|
|
pkgdesc="Firmware for LG hammerhead (Nexus 5)"
|
2020-12-18 23:22:15 +00:00
|
|
|
subpackages="$pkgname-modem $pkgname-adsp $pkgname-bluetooth"
|
|
|
|
url="https://developers.google.com/android/drivers#hammerheadm4b30z"
|
2019-03-03 20:39:14 +00:00
|
|
|
arch="armv7"
|
2018-05-12 13:08:13 +00:00
|
|
|
license="proprietary"
|
|
|
|
options="!check !strip !archcheck"
|
|
|
|
|
|
|
|
# Sources
|
2020-12-18 23:22:15 +00:00
|
|
|
source="https://gitlab.com/JuniorJPDJ/hammerhead-modem/-/archive/$_modem_commit/hammerhead-modem-$_modem_commit.tar.gz
|
|
|
|
https://dl.google.com/dl/android/aosp/qcom-hammerhead-m4b30z-d6c0fe26.tgz
|
|
|
|
https://dl.google.com/dl/android/aosp/broadcom-hammerhead-m4b30z-21cf8433.tgz"
|
|
|
|
|
|
|
|
unpack() {
|
|
|
|
default_unpack
|
|
|
|
|
|
|
|
mkdir -p "$srcdir/qcom" "$srcdir/broadcom"
|
|
|
|
tail -n +315 "$srcdir/extract-qcom-hammerhead.sh" | tar -C "$srcdir/qcom" -zx
|
|
|
|
tail -n +276 "$srcdir/extract-broadcom-hammerhead.sh" | tar -C "$srcdir/broadcom" -zx
|
|
|
|
}
|
2018-05-12 13:08:13 +00:00
|
|
|
|
|
|
|
package() {
|
|
|
|
# parent package is empty
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
modem() {
|
|
|
|
pkgdesc="LG Nexus 5 modem firmware"
|
|
|
|
|
2020-12-18 23:22:15 +00:00
|
|
|
cd "$srcdir/hammerhead-modem-$_modem_commit/image"
|
|
|
|
for _i in *; do
|
2021-02-03 21:31:51 +00:00
|
|
|
install -Dm644 $_i "$subpkgdir"/lib/firmware/postmarketos/$_i
|
2018-05-12 13:08:13 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
adsp() {
|
|
|
|
pkgdesc="LG Nexus 5 adsp firmware"
|
|
|
|
|
2020-12-18 23:22:15 +00:00
|
|
|
cd "$srcdir/qcom/vendor/qcom/hammerhead/proprietary"
|
2018-05-12 13:08:13 +00:00
|
|
|
for _i in adsp.*; do
|
2021-02-03 21:31:51 +00:00
|
|
|
install -Dm644 $_i "$subpkgdir"/lib/firmware/postmarketos/$_i
|
2018-05-12 13:08:13 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2020-12-18 23:22:15 +00:00
|
|
|
bluetooth() {
|
|
|
|
pkgdesc="LG Nexus 5 Bluetooth firmware"
|
|
|
|
|
2021-02-03 21:31:51 +00:00
|
|
|
install -Dm644 "$srcdir/broadcom/vendor/broadcom/hammerhead/proprietary/bcm4335c0.hcd" "$subpkgdir"/lib/firmware/postmarketos/brcm/BCM4335C0.hcd
|
2020-12-18 23:22:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="a63a0fad2c7e5920c8a30213e149c51a745cdb2b34c1b13772737d1da51cd712aa81d3e03de6f3397d0705e59d0130727979f2c1c6f529788e0fbc9bbcde6a8a hammerhead-modem-d0565ebb2033bbd267b8be698373f075c9a82cd5.tar.gz
|
|
|
|
a421b547c78b71f73faa017325e291259aa37250c68613230f30a6bad8b773eb89bf2f1cf194e1d0182874ce346996107544dde00f742cf56d23076e02435df2 qcom-hammerhead-m4b30z-d6c0fe26.tgz
|
|
|
|
003502fff6f8e69dea91f0c24e75021f9b5099c1bb65e6167f388e26d3a820e7649eb618ae7925ebc9a2b97121759308c6e9ccf4d8b49b369918bdd7b59b1ed0 broadcom-hammerhead-m4b30z-21cf8433.tgz"
|