From 5eaece05d20efbdf0dfcec19680cf2bd63579306 Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Wed, 27 Mar 2024 14:39:51 +0700 Subject: [PATCH] add: gsctool (#1007) * add: gsctool * asdasdas --- anda/tools/gsctool/anda.hcl | 5 +++++ anda/tools/gsctool/gsctool.spec | 40 +++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 anda/tools/gsctool/anda.hcl create mode 100644 anda/tools/gsctool/gsctool.spec diff --git a/anda/tools/gsctool/anda.hcl b/anda/tools/gsctool/anda.hcl new file mode 100644 index 0000000000..af03f6660f --- /dev/null +++ b/anda/tools/gsctool/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "gsctool.spec" + } +} diff --git a/anda/tools/gsctool/gsctool.spec b/anda/tools/gsctool/gsctool.spec new file mode 100644 index 0000000000..8aeddd4282 --- /dev/null +++ b/anda/tools/gsctool/gsctool.spec @@ -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 +- initial release