add: cbmem (#3323) (#5468)

* Add: cbmem

* Fix url and date

* add --depth 1 and cd into make directory

* Commit suggestions



* use make build macro



* Fix git clone



* Try the funny



* Fix license



* Add global compiler thing at the top



* Add licenses/docs and remove -std thing



* fix build flag macro



* Add wno error flag



* Add other licenses



* Install all licenses



* meow



* Update cbmem.spec



* Update cbmem.spec



* meow



* Update version and changelog, remove global build flags

This should work lol



---------




(cherry picked from commit 04c6da7499)

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
Signed-off-by: madomado <madonuko@outlook.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-06-15 20:28:21 -07:00
committed by GitHub
parent d15e581cb5
commit 4e5d2bf640
3 changed files with 38 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "cbmem.spec"
}
}
+32
View File
@@ -0,0 +1,32 @@
%define debug_package %nil
Name: cbmem
Version: 25.03
Release: 1%?dist
Summary: Prints out coreboot mem table information
URL: https://review.coreboot.org
License: BSD-3-Clause AND Apache-2.0 AND CC-BY-SA-3.0 AND GPL-2.0-only AND GPL-3.0-or-later AND ISC AND BSD-2-Clause-Patent AND BSD-4-Clause-UC AND CC-PDDC AND GPL-2.0-or-later AND HPND-sell-varient AND LGPL-2.1-or-later AND BSD-2-Clause AND CC-BY-4.0 AND GPL-3.0-only AND HPND AND X11 AND MIT
BuildRequires: gcc g++ make cmake ncurses-devel iasl git anda-srpm-macros
Packager: Owen Zimmerman <owen@fyralabs.com>
%description
Prints out coreboot mem table information in JSON by default, and also implements the basic cbmem -list and -console commands.
%prep
%git_clone %url/coreboot %version
%build
cd util/cbmem
%make_build CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS"
%install
install -Dm 755 util/cbmem/cbmem %buildroot%_bindir/cbmem
%files
%doc util/cbmem/description.md
%license LICENSES/*
%{_bindir}/cbmem
%changelog
* Sun Jun 15 2025 Owen Zimmerman <owen@fyralabs.com>
- Initial Package
+1
View File
@@ -0,0 +1 @@
rpm.version(gh_tag("coreboot/coreboot"));