From ce8efee7f5b364a7286211f0603a5ca5c8defd49 Mon Sep 17 00:00:00 2001 From: WeirdTreeThing Date: Tue, 29 Oct 2024 05:45:37 -0400 Subject: [PATCH] add: linux-firmware-trogdor (#88) * add: linux-firmware-trogdor * Update ultramarine/linux-firmware-trogdor/anda.hcl Co-authored-by: madomado --------- Co-authored-by: madomado --- ultramarine/linux-firmware-trogdor/anda.hcl | 6 +++ .../linux-firmware-trogdor.spec | 40 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 ultramarine/linux-firmware-trogdor/anda.hcl create mode 100644 ultramarine/linux-firmware-trogdor/linux-firmware-trogdor.spec diff --git a/ultramarine/linux-firmware-trogdor/anda.hcl b/ultramarine/linux-firmware-trogdor/anda.hcl new file mode 100644 index 0000000..8580918 --- /dev/null +++ b/ultramarine/linux-firmware-trogdor/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["aarch64"] + rpm { + spec = "linux-firmware-trogdor.spec" + } +} diff --git a/ultramarine/linux-firmware-trogdor/linux-firmware-trogdor.spec b/ultramarine/linux-firmware-trogdor/linux-firmware-trogdor.spec new file mode 100644 index 0000000..39b338b --- /dev/null +++ b/ultramarine/linux-firmware-trogdor/linux-firmware-trogdor.spec @@ -0,0 +1,40 @@ +%global _commit bae7f2275cd7ccd73111662e25b124c082f296ea +%global _shortcommit %(c=%{commit}; echo ${c:0:7}) + +%global _modemfwdir qcom/sc7180-trogdor +%global _firmwarepath /usr/lib/firmware/%_modemfwdir + +Name: linux-firmware-trogdor +Version: 20230713 +Release: 1%{?dist} +Summary: Modem firmware for trodgor ChromeOS devices +BuildArch: noarch +ExclusiveArch: aarch64 +License: Proprietary +URL: https://gitlab.com/jenneron/firmware-google-trogdor +Source0: %url/-/archive/%_commit/firmware-google-trogdor-$_commit.tar.gz + +Requires: linux-firmware + +%description +Modem firmware for trodgor ChromeOS devices. Also required for WiFi on non-LTE models. + +%prep +%autosetup -n firmware-google-trogdor-%_commit + +%build + +%install +install -Dm644 %_modemfwdir/modem/mba.mbn -t %{buildroot}/%_firmwarepath/modem +install -Dm644 %_modemfwdir/modem/qdsp6sw.mbn -t %{buildroot}/%_firmwarepath/modem +install -Dm644 %_modemfwdir/modem-nolte/mba.mbn -t %{buildroot}/%_firmwarepath/modem-nolte +install -Dm644 %_modemfwdir/modem-nolte/qdsp6sw.mbn -t %{buildroot}/%_firmwarepath/modem-nolte + + +%files +%_firmwarepath/modem/* +%_firmwarepath/modem-nolte/* + +%changelog +* Sun Oct 27 2024 WeirdTreeThing +- Initial release