* [gentoo-commits] repo/dev/tamiko:master commit in: app-admin/coreboot-utils/files/, app-admin/coreboot-utils/
@ 2025-08-31 7:29 Matthias Maier
0 siblings, 0 replies; 2+ messages in thread
From: Matthias Maier @ 2025-08-31 7:29 UTC (permalink / raw
To: gentoo-commits
commit: 783bbb0fb43e467448f2b4096b4ce17c7d4ce6c3
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 31 07:16:09 2025 +0000
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Sun Aug 31 07:26:11 2025 +0000
URL: https://gitweb.gentoo.org/repo/dev/tamiko.git/commit/?id=783bbb0f
app-admin/coreboot-utils: new package, add 25.06
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
app-admin/coreboot-utils/Manifest | 1 +
.../coreboot-utils/coreboot-utils-25.06.ebuild | 56 ++++++++++++++++++++++
app-admin/coreboot-utils/error.log | 0
.../coreboot-utils-25.06-fix_compilation.patch | 16 +++++++
4 files changed, 73 insertions(+)
diff --git a/app-admin/coreboot-utils/Manifest b/app-admin/coreboot-utils/Manifest
new file mode 100644
index 0000000..3c8f18f
--- /dev/null
+++ b/app-admin/coreboot-utils/Manifest
@@ -0,0 +1 @@
+DIST coreboot-25.06.tar.xz 65295812 BLAKE2B 71d88e8f886df117768aa9d8f8913c9bef4c981b36c7eefd37e00d0ce746a588b6fc6aa658be59d141010e3ef1726ee492b52d87d9b4ace7a74dce78361bc1d2 SHA512 380546ee0353098065e824f1ae3f7fca012bb23adf47432b0b598a64ac6940d71035f8614f39ecb48f444c854bf532096c66149c26134ff1ed9ec14f7a836a22
diff --git a/app-admin/coreboot-utils/coreboot-utils-25.06.ebuild b/app-admin/coreboot-utils/coreboot-utils-25.06.ebuild
new file mode 100644
index 0000000..8f07ba6
--- /dev/null
+++ b/app-admin/coreboot-utils/coreboot-utils-25.06.ebuild
@@ -0,0 +1,56 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="A selection from coreboot/utils useful in general"
+HOMEPAGE="https://www.coreboot.org/"
+SRC_URI="https://coreboot.org/releases/coreboot-${PV}.tar.xz"
+
+LICENSE="GPL-2+ GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="sys-apps/pciutils
+ sys-libs/zlib"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+S="${WORKDIR}/coreboot-${PV}"
+PATCHES=(
+ "${FILESDIR}/${P}-fix_compilation.patch"
+)
+
+# selection from README.md that seem useful outside coreboot
+coreboot_utils=(
+ #cbfstool has textrels and is not really necessary outside coreboot
+ cbmem
+ ifdtool
+ intelmetool
+ inteltool
+ me_cleaner
+ nvramtool
+ pmh7tool
+ superiotool
+)
+
+src_compile() {
+ tc-export CC
+ export HOSTCFLAGS="${CFLAGS}"
+ for tool in ${coreboot_utils[*]} ; do
+ [[ -f util/${tool}/Makefile ]] || continue
+ emake -C util/${tool} V=1
+ done
+}
+
+src_install() {
+ exeinto /usr/sbin
+ for tool in ${coreboot_utils[*]} ; do
+ [[ -e util/${tool}/${tool} ]] && doexe util/${tool}/${tool}
+ [[ -e util/${tool}/${tool}.py ]] && doexe util/${tool}/${tool}.py
+ [[ -e util/${tool}/${tool}.8 ]] && doman util/${tool}/${tool}.8
+ [[ -d util/${tool}/man ]] && doman util/${tool}/man/*.[12345678]
+ done
+}
diff --git a/app-admin/coreboot-utils/error.log b/app-admin/coreboot-utils/error.log
new file mode 100644
index 0000000..e69de29
diff --git a/app-admin/coreboot-utils/files/coreboot-utils-25.06-fix_compilation.patch b/app-admin/coreboot-utils/files/coreboot-utils-25.06-fix_compilation.patch
new file mode 100644
index 0000000..ebae88b
--- /dev/null
+++ b/app-admin/coreboot-utils/files/coreboot-utils-25.06-fix_compilation.patch
@@ -0,0 +1,16 @@
+diff --git a/util/intelmetool/Makefile b/util/intelmetool/Makefile
+index 37511857..5dd7c20f 100644
+--- a/util/intelmetool/Makefile
++++ b/util/intelmetool/Makefile
+@@ -6,8 +6,8 @@ TOP ?= $(abspath ../..)
+ CC ?= gcc
+ INSTALL ?= /usr/bin/env install
+ PREFIX ?= /usr/local
+-CFLAGS ?= -O0 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function \
+- -I $(TOP)/src/commonlib/bsd/include
++CFLAGS ?= -O0 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function
++CFLAGS += -I $(TOP)/src/commonlib/bsd/include
+ LDFLAGS += -lpci -lz
+
+ OBJS = intelmetool.o me.o me_status.o mmap.o rcba.o msr.o
+
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/dev/tamiko:master commit in: app-admin/coreboot-utils/files/, app-admin/coreboot-utils/
@ 2025-08-31 7:29 Matthias Maier
0 siblings, 0 replies; 2+ messages in thread
From: Matthias Maier @ 2025-08-31 7:29 UTC (permalink / raw
To: gentoo-commits
commit: 94c8e483dcc748d5905945502bf2d8cdf4e2172e
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 31 07:16:09 2025 +0000
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Sun Aug 31 07:29:18 2025 +0000
URL: https://gitweb.gentoo.org/repo/dev/tamiko.git/commit/?id=94c8e483
app-admin/coreboot-utils: new package, add 25.06
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
app-admin/coreboot-utils/Manifest | 1 +
.../coreboot-utils/coreboot-utils-25.06.ebuild | 56 ++++++++++++++++++++++
.../coreboot-utils-25.06-fix_compilation.patch | 16 +++++++
3 files changed, 73 insertions(+)
diff --git a/app-admin/coreboot-utils/Manifest b/app-admin/coreboot-utils/Manifest
new file mode 100644
index 0000000..3c8f18f
--- /dev/null
+++ b/app-admin/coreboot-utils/Manifest
@@ -0,0 +1 @@
+DIST coreboot-25.06.tar.xz 65295812 BLAKE2B 71d88e8f886df117768aa9d8f8913c9bef4c981b36c7eefd37e00d0ce746a588b6fc6aa658be59d141010e3ef1726ee492b52d87d9b4ace7a74dce78361bc1d2 SHA512 380546ee0353098065e824f1ae3f7fca012bb23adf47432b0b598a64ac6940d71035f8614f39ecb48f444c854bf532096c66149c26134ff1ed9ec14f7a836a22
diff --git a/app-admin/coreboot-utils/coreboot-utils-25.06.ebuild b/app-admin/coreboot-utils/coreboot-utils-25.06.ebuild
new file mode 100644
index 0000000..8f07ba6
--- /dev/null
+++ b/app-admin/coreboot-utils/coreboot-utils-25.06.ebuild
@@ -0,0 +1,56 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="A selection from coreboot/utils useful in general"
+HOMEPAGE="https://www.coreboot.org/"
+SRC_URI="https://coreboot.org/releases/coreboot-${PV}.tar.xz"
+
+LICENSE="GPL-2+ GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="sys-apps/pciutils
+ sys-libs/zlib"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+S="${WORKDIR}/coreboot-${PV}"
+PATCHES=(
+ "${FILESDIR}/${P}-fix_compilation.patch"
+)
+
+# selection from README.md that seem useful outside coreboot
+coreboot_utils=(
+ #cbfstool has textrels and is not really necessary outside coreboot
+ cbmem
+ ifdtool
+ intelmetool
+ inteltool
+ me_cleaner
+ nvramtool
+ pmh7tool
+ superiotool
+)
+
+src_compile() {
+ tc-export CC
+ export HOSTCFLAGS="${CFLAGS}"
+ for tool in ${coreboot_utils[*]} ; do
+ [[ -f util/${tool}/Makefile ]] || continue
+ emake -C util/${tool} V=1
+ done
+}
+
+src_install() {
+ exeinto /usr/sbin
+ for tool in ${coreboot_utils[*]} ; do
+ [[ -e util/${tool}/${tool} ]] && doexe util/${tool}/${tool}
+ [[ -e util/${tool}/${tool}.py ]] && doexe util/${tool}/${tool}.py
+ [[ -e util/${tool}/${tool}.8 ]] && doman util/${tool}/${tool}.8
+ [[ -d util/${tool}/man ]] && doman util/${tool}/man/*.[12345678]
+ done
+}
diff --git a/app-admin/coreboot-utils/files/coreboot-utils-25.06-fix_compilation.patch b/app-admin/coreboot-utils/files/coreboot-utils-25.06-fix_compilation.patch
new file mode 100644
index 0000000..ebae88b
--- /dev/null
+++ b/app-admin/coreboot-utils/files/coreboot-utils-25.06-fix_compilation.patch
@@ -0,0 +1,16 @@
+diff --git a/util/intelmetool/Makefile b/util/intelmetool/Makefile
+index 37511857..5dd7c20f 100644
+--- a/util/intelmetool/Makefile
++++ b/util/intelmetool/Makefile
+@@ -6,8 +6,8 @@ TOP ?= $(abspath ../..)
+ CC ?= gcc
+ INSTALL ?= /usr/bin/env install
+ PREFIX ?= /usr/local
+-CFLAGS ?= -O0 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function \
+- -I $(TOP)/src/commonlib/bsd/include
++CFLAGS ?= -O0 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function
++CFLAGS += -I $(TOP)/src/commonlib/bsd/include
+ LDFLAGS += -lpci -lz
+
+ OBJS = intelmetool.o me.o me_status.o mmap.o rcba.o msr.o
+
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-31 7:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-31 7:29 [gentoo-commits] repo/dev/tamiko:master commit in: app-admin/coreboot-utils/files/, app-admin/coreboot-utils/ Matthias Maier
-- strict thread matches above, loose matches on Subject: below --
2025-08-31 7:29 Matthias Maier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox