-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add: chromium-ectool * fix: use %make_build macro
- Loading branch information
infinitebash
authored
Jan 3, 2024
1 parent
71bf8e2
commit 6fe7f31
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
project pkg { | ||
rpm { | ||
spec = "chromium-ectool.spec" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
%global commit 55680f70d2a1e61c193fc78ff1d51c7437803683 | ||
%global shortcommit %(c=%{commit}; echo ${c:0:7}) | ||
|
||
Name: chromium-ectool | ||
Summary: Query and send commands to ChromiumOS EC from userspace. | ||
License: BSD-3-Clause | ||
URL: https://chromium.googlesource.com/chromiumos/platform/ec/ | ||
|
||
Version: %shortcommit | ||
Release: 14526.B%{?dist} | ||
Source0: https://github.com/coreboot/chrome-ec/archive/refs/heads/release-R100-14526.B-main.tar.gz | ||
Provides: ectool | ||
|
||
BuildRequires: make gcc libftdi-devel libusb1-devel hostname | ||
|
||
%description | ||
A tool to query and send commands to ChromiumOS EC from userspace. | ||
|
||
%prep | ||
%autosetup -n chrome-ec-release-R100-14526.B-main | ||
|
||
%build | ||
BOARD=host %make_build utils-host | ||
|
||
%install | ||
install -Dm755 build/host/util/ectool %{buildroot}%{_bindir}/ectool | ||
|
||
%files | ||
%license LICENSE | ||
%doc README.md | ||
%{_bindir}/ectool | ||
|
||
%changelog | ||
* Tue Jan 2 2024 infinitebash <[email protected]> | ||
- Initial package. |