From 38b3e1a3757aeb0498bf88557951324d324d1cde Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Mon, 26 Aug 2024 00:13:52 -0500 Subject: [PATCH] Add cbfstool (#1997) * add cbfstool * Update dependancies * fix files part and version variable * fix typo * fix build step * Add git dep * Finished package (cherry picked from commit 6ed310e12ef9875bfd18ef0e2fc5380cb1e5c5d5) --- anda/tools/cbfstool/anda.hcl | 5 +++++ anda/tools/cbfstool/cbfstool.spec | 28 ++++++++++++++++++++++++++++ anda/tools/cbfstool/update.rhai | 1 + 3 files changed, 34 insertions(+) create mode 100644 anda/tools/cbfstool/anda.hcl create mode 100644 anda/tools/cbfstool/cbfstool.spec create mode 100644 anda/tools/cbfstool/update.rhai diff --git a/anda/tools/cbfstool/anda.hcl b/anda/tools/cbfstool/anda.hcl new file mode 100644 index 0000000000..027d66d8b8 --- /dev/null +++ b/anda/tools/cbfstool/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "cbfstool.spec" + } +} \ No newline at end of file diff --git a/anda/tools/cbfstool/cbfstool.spec b/anda/tools/cbfstool/cbfstool.spec new file mode 100644 index 0000000000..42d6d95ae3 --- /dev/null +++ b/anda/tools/cbfstool/cbfstool.spec @@ -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 + +%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 +- Initial Package \ No newline at end of file diff --git a/anda/tools/cbfstool/update.rhai b/anda/tools/cbfstool/update.rhai new file mode 100644 index 0000000000..97ba221d82 --- /dev/null +++ b/anda/tools/cbfstool/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("coreboot/coreboot")); \ No newline at end of file