Skip to content

Commit

Permalink
add: gsctool (#1007)
Browse files Browse the repository at this point in the history
* add: gsctool

* asdasdas
  • Loading branch information
korewaChino authored and lleyton committed Apr 2, 2024
1 parent 18ac5f9 commit 5eaece0
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/tools/gsctool/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "gsctool.spec"
}
}
40 changes: 40 additions & 0 deletions anda/tools/gsctool/gsctool.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
%define commit c060a44d085fefabd414a026dc3177533f20f0f3
%define shortcommit %(c=%{commit}; echo ${c:0:12})
Name: gsctool
Version: git+%{shortcommit}
Release: 1%{?dist}
Summary: Chromium OS EC utilities

License: BSD-3-Clause
URL: https://chromium.googlesource.com/chromiumos/platform/ec
Source0: https://chromium.googlesource.com/chromiumos/platform/ec/+archive/%{commit}.tar.gz#/%{name}-git+%{commit}.tar.gz

BuildRequires: pkgconfig
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(openssl)
BuildRequires: gcc

%description
Chromium OS EC utilities

%prep
%autosetup -c

%build
ls
pushd extra/usb_updater
%make_build


%install
pushd extra/usb_updater
install -D -m 755 gsctool %{buildroot}%{_bindir}/gsctool


%files
%{_bindir}/gsctool


%changelog
* Wed Mar 27 2024 Cappy Ishihara <[email protected]>
- initial release

0 comments on commit 5eaece0

Please sign in to comment.