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