Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cbfstool #1997

Merged
merged 7 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions anda/tools/cbfstool/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "cbfstool.spec"
}
}
28 changes: 28 additions & 0 deletions anda/tools/cbfstool/cbfstool.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Name: cbfstool
Version: 24.08
Release: 1%?dist
Summary: Management utility for CBFS formatted ROM images
URL: https://doc.coreboot.org/lib/fw_config.html#cbfs
License: GPLv2
BuildRequires: gcc g++ gcc-gnat make cmake ncurses-devel iasl git
Requires: glibc
Packager: Owen Zimmerman <[email protected]>

%description
Management utility for CBFS formatted ROM images.

%prep
git clone https://review.coreboot.org/coreboot.git -b %version

%build
make -C coreboot/util/cbfstool

%install
install -Dm 777 coreboot/util/cbfstool/cbfstool %buildroot%_bindir/cbfstool

%files
/usr/bin/cbfstool

%changelog
* Sun Aug 25 2024 Owen Zimmerman <[email protected]>
- Initial Package
1 change: 1 addition & 0 deletions anda/tools/cbfstool/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("coreboot/coreboot"));
Loading