mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
add: coreboot-utils (#6045)
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
Name: abuild
|
||||
Version: 25.06
|
||||
Release: 1%?dist
|
||||
Summary: coreboot autobuild script builds coreboot images for all available targets.
|
||||
URL: https://doc.coreboot.org/util/abuild/index.html
|
||||
License: GPLv2
|
||||
BuildRequires: anda-srpm-macros
|
||||
BuildArch: noarch
|
||||
Packager: Owen Zimmerman <owen@fyralabs.com>
|
||||
|
||||
%description
|
||||
%summary
|
||||
|
||||
%prep
|
||||
%git_clone https://review.coreboot.org/coreboot.git %version
|
||||
|
||||
%install
|
||||
install -Dm 777 util/abuild/abuild %buildroot%_bindir/abuild
|
||||
|
||||
%files
|
||||
/usr/bin/abuild
|
||||
|
||||
%changelog
|
||||
* Sat Feb 01 2025 Owen Zimmerman <owen@fyralabs.com>
|
||||
- Initial Package
|
||||
@@ -1,6 +0,0 @@
|
||||
project pkg {
|
||||
arches = ["x86_64"]
|
||||
rpm {
|
||||
spec = "abuild.spec"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
rpm.version(gh_tag("coreboot/coreboot"));
|
||||
@@ -1,5 +0,0 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "cbfstool.spec"
|
||||
}
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
Name: cbfstool
|
||||
Version: 25.06
|
||||
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 anda-srpm-macros
|
||||
%if 0%{?fedora} >= 42
|
||||
BuildRequires: gcc14 gcc14-c++
|
||||
%endif
|
||||
Requires: glibc
|
||||
Packager: Owen Zimmerman <owen@fyralabs.com>
|
||||
|
||||
%description
|
||||
Management utility for CBFS formatted ROM images.
|
||||
|
||||
%prep
|
||||
%git_clone https://review.coreboot.org/coreboot.git %version
|
||||
|
||||
%build
|
||||
%if 0%{?fedora} >= 42
|
||||
export CC=gcc-14
|
||||
export CXX=g++-14
|
||||
%endif
|
||||
%make_build -C util/cbfstool
|
||||
|
||||
%install
|
||||
install -Dm 777 util/cbfstool/cbfstool %buildroot%_bindir/cbfstool
|
||||
|
||||
%files
|
||||
/usr/bin/cbfstool
|
||||
|
||||
%changelog
|
||||
* Wed Apr 02 2025 Owen Zimmerman <owen@fyralabs.com>
|
||||
- Add macros and specify fedora version release exports
|
||||
* Sun Aug 25 2024 Owen Zimmerman <owen@fyralabs.com>
|
||||
- Initial Package
|
||||
@@ -1 +0,0 @@
|
||||
rpm.version(gh_tag("coreboot/coreboot"));
|
||||
@@ -1,5 +0,0 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "cbmem.spec"
|
||||
}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
%define debug_package %nil
|
||||
|
||||
Name: cbmem
|
||||
Version: 25.06
|
||||
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 +0,0 @@
|
||||
rpm.version(gh_tag("coreboot/coreboot"));
|
||||
@@ -7,9 +7,9 @@ License: BSD-3-Clause
|
||||
URL: https://chromium.googlesource.com/chromiumos/platform/ec/
|
||||
|
||||
Version: %shortcommit
|
||||
Release: 14526.B%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Source0: https://github.com/coreboot/chrome-ec/archive/refs/heads/release-R100-14526.B-main.tar.gz
|
||||
Provides: ectool
|
||||
Conflicts: ectool
|
||||
|
||||
BuildRequires: make gcc libftdi-devel libusb1-devel hostname
|
||||
|
||||
@@ -31,5 +31,7 @@ install -Dm755 build/host/util/ectool %{buildroot}%{_bindir}/ectool
|
||||
%{_bindir}/ectool
|
||||
|
||||
%changelog
|
||||
* Sat Aug 09 2025 Owen Zimmerman <owen@fyralabs.com.com>
|
||||
- Conflict with coreboot ectool.
|
||||
* Tue Jan 2 2024 infinitebash <terra@infinitebash.com>
|
||||
- Initial package.
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "coreboot-utils.spec"
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,10 @@
|
||||
diff --git a/util/qualcomm/elf_segment_extractor.py b/util/qualcomm/elf_segment_extractor.py
|
||||
index 7ba6e8aa..ae477373 100755
|
||||
--- a/util/qualcomm/elf_segment_extractor.py
|
||||
+++ b/util/qualcomm/elf_segment_extractor.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
import sys
|
||||
import os
|
||||
import struct
|
||||
@@ -0,0 +1,10 @@
|
||||
diff --git a/util/spdtool/spdtool.py b/util/spdtool/spdtool.py
|
||||
index 89976eac..2cd70273 100644
|
||||
--- a/util/spdtool/spdtool.py
|
||||
+++ b/util/spdtool/spdtool.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
# spdtool - Tool for partial deblobbing of UEFI firmware images
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("coreboot/coreboot"));
|
||||
Reference in New Issue
Block a user