Skip to content

Commit

Permalink
add: linux-firmware-trogdor (#88)
Browse files Browse the repository at this point in the history
* add: linux-firmware-trogdor

* Update ultramarine/linux-firmware-trogdor/anda.hcl

Co-authored-by: madomado <[email protected]>

---------

Co-authored-by: madomado <[email protected]>
  • Loading branch information
WeirdTreeThing and madonuko authored Oct 29, 2024
1 parent 23877c3 commit ce8efee
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ultramarine/linux-firmware-trogdor/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
project pkg {
arches = ["aarch64"]
rpm {
spec = "linux-firmware-trogdor.spec"
}
}
40 changes: 40 additions & 0 deletions ultramarine/linux-firmware-trogdor/linux-firmware-trogdor.spec
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
- Initial release

0 comments on commit ce8efee

Please sign in to comment.