From 801fc82fea0a456920a57b97057f07245bc57bdc Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Mon, 11 Aug 2025 21:28:17 -0500 Subject: [PATCH] add: coreboot-utils (#6045) --- anda/tools/abuild/abuild.spec | 25 - anda/tools/abuild/anda.hcl | 6 - anda/tools/abuild/update.rhai | 1 - anda/tools/cbfstool/anda.hcl | 5 - anda/tools/cbfstool/cbfstool.spec | 37 - anda/tools/cbfstool/update.rhai | 1 - anda/tools/cbmem/anda.hcl | 5 - anda/tools/cbmem/cbmem.spec | 32 - anda/tools/cbmem/update.rhai | 1 - .../chromium-ectool/chromium-ectool.spec | 6 +- anda/tools/coreboot-utils/anda.hcl | 5 + anda/tools/coreboot-utils/coreboot-utils.spec | 1007 +++++++++++++++++ .../elf_segment_extractor-python3.patch | 10 + .../coreboot-utils/spdtool-python3.patch | 10 + anda/tools/coreboot-utils/update.rhai | 1 + 15 files changed, 1037 insertions(+), 115 deletions(-) delete mode 100644 anda/tools/abuild/abuild.spec delete mode 100644 anda/tools/abuild/anda.hcl delete mode 100644 anda/tools/abuild/update.rhai delete mode 100644 anda/tools/cbfstool/anda.hcl delete mode 100644 anda/tools/cbfstool/cbfstool.spec delete mode 100644 anda/tools/cbfstool/update.rhai delete mode 100644 anda/tools/cbmem/anda.hcl delete mode 100644 anda/tools/cbmem/cbmem.spec delete mode 100644 anda/tools/cbmem/update.rhai create mode 100644 anda/tools/coreboot-utils/anda.hcl create mode 100644 anda/tools/coreboot-utils/coreboot-utils.spec create mode 100644 anda/tools/coreboot-utils/elf_segment_extractor-python3.patch create mode 100644 anda/tools/coreboot-utils/spdtool-python3.patch create mode 100644 anda/tools/coreboot-utils/update.rhai diff --git a/anda/tools/abuild/abuild.spec b/anda/tools/abuild/abuild.spec deleted file mode 100644 index 522edd4f75..0000000000 --- a/anda/tools/abuild/abuild.spec +++ /dev/null @@ -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 - -%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 -- Initial Package diff --git a/anda/tools/abuild/anda.hcl b/anda/tools/abuild/anda.hcl deleted file mode 100644 index c03ce6e01d..0000000000 --- a/anda/tools/abuild/anda.hcl +++ /dev/null @@ -1,6 +0,0 @@ -project pkg { - arches = ["x86_64"] - rpm { - spec = "abuild.spec" - } -} \ No newline at end of file diff --git a/anda/tools/abuild/update.rhai b/anda/tools/abuild/update.rhai deleted file mode 100644 index 24c1901edd..0000000000 --- a/anda/tools/abuild/update.rhai +++ /dev/null @@ -1 +0,0 @@ -rpm.version(gh_tag("coreboot/coreboot")); \ No newline at end of file diff --git a/anda/tools/cbfstool/anda.hcl b/anda/tools/cbfstool/anda.hcl deleted file mode 100644 index 027d66d8b8..0000000000 --- a/anda/tools/cbfstool/anda.hcl +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 78b0cce1da..0000000000 --- a/anda/tools/cbfstool/cbfstool.spec +++ /dev/null @@ -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 - -%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 -- Add macros and specify fedora version release exports -* Sun Aug 25 2024 Owen Zimmerman -- Initial Package diff --git a/anda/tools/cbfstool/update.rhai b/anda/tools/cbfstool/update.rhai deleted file mode 100644 index 7e27695ddc..0000000000 --- a/anda/tools/cbfstool/update.rhai +++ /dev/null @@ -1 +0,0 @@ -rpm.version(gh_tag("coreboot/coreboot")); diff --git a/anda/tools/cbmem/anda.hcl b/anda/tools/cbmem/anda.hcl deleted file mode 100644 index 09a390e7b6..0000000000 --- a/anda/tools/cbmem/anda.hcl +++ /dev/null @@ -1,5 +0,0 @@ -project pkg { - rpm { - spec = "cbmem.spec" - } -} diff --git a/anda/tools/cbmem/cbmem.spec b/anda/tools/cbmem/cbmem.spec deleted file mode 100644 index 97ddb655f0..0000000000 --- a/anda/tools/cbmem/cbmem.spec +++ /dev/null @@ -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 - -%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 -- Initial Package diff --git a/anda/tools/cbmem/update.rhai b/anda/tools/cbmem/update.rhai deleted file mode 100644 index 7e27695ddc..0000000000 --- a/anda/tools/cbmem/update.rhai +++ /dev/null @@ -1 +0,0 @@ -rpm.version(gh_tag("coreboot/coreboot")); diff --git a/anda/tools/chromium-ectool/chromium-ectool.spec b/anda/tools/chromium-ectool/chromium-ectool.spec index 49bb056500..9664e89c3d 100644 --- a/anda/tools/chromium-ectool/chromium-ectool.spec +++ b/anda/tools/chromium-ectool/chromium-ectool.spec @@ -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 +- Conflict with coreboot ectool. * Tue Jan 2 2024 infinitebash - Initial package. diff --git a/anda/tools/coreboot-utils/anda.hcl b/anda/tools/coreboot-utils/anda.hcl new file mode 100644 index 0000000000..5b2f428a82 --- /dev/null +++ b/anda/tools/coreboot-utils/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "coreboot-utils.spec" + } +} diff --git a/anda/tools/coreboot-utils/coreboot-utils.spec b/anda/tools/coreboot-utils/coreboot-utils.spec new file mode 100644 index 0000000000..95141c6841 --- /dev/null +++ b/anda/tools/coreboot-utils/coreboot-utils.spec @@ -0,0 +1,1007 @@ +%define debug_package %nil + +Name: coreboot-utils +Version: 25.06 +Release: 1%?dist +Summary: Various coreboot utilities +URL: https://doc.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 +Packager: Owen Zimmerman + +Patch0: spdtool-python3.patch +Patch1: elf_segment_extractor-python3.patch + +BuildRequires: anda-srpm-macros +BuildRequires: go-rpm-macros +BuildRequires: pkg-config + +BuildRequires: gcc +BuildRequires: g++ +BuildRequires: gcc-gnat +BuildRequires: bison +BuildRequires: meson +BuildRequires: make +BuildRequires: cmake +BuildRequires: ninja-build +BuildRequires: golang + +BuildRequires: libstdc++ +BuildRequires: libgcc +BuildRequires: libbpf-devel +BuildRequires: glibc-devel +BuildRequires: ncurses-devel +BuildRequires: libfl-devel +BuildRequires: pciutils-devel +BuildRequires: libxcrypt-devel +BuildRequires: yaml-cpp-devel +BuildRequires: openssl-devel +BuildRequires: qt5-qtbase-devel +BuildRequires: qt6-qtbase-devel +BuildRequires: qt5-qtsvg-devel + +BuildRequires: inkscape +BuildRequires: flex +BuildRequires: acpica-tools +BuildRequires: binutils +BuildRequires: python3 + +%if 0%{?fedora} >= 42 +BuildRequires: gcc14 gcc14-c++ +%endif + +%description +%summary. + +%package all +Summary: Installs all coreboot-utils packages + +Requires: %{name}-abuild +Requires: %{name}-amdfwtool +Requires: %{name}-amdtools +Requires: %{name}-apcb +%dnl Requires: %{name}-archive +Requires: %{name}-autoport +Requires: %{name}-bincfg +Requires: %{name}-board_status +Requires: %{name}-bucts +Requires: %{name}-cbfstool +Requires: %{name}-cbfstool-tests +Requires: %{name}-cbmem +Requires: %{name}-chromeos-coreboot-utilities +Requires: %{name}-coreboot-configurator +Requires: %{name}-ectool +Requires: %{name}-exynos +Requires: %{name}-find_usbdebug +Requires: %{name}-futility +Requires: %{name}-genbuild_h +Requires: %{name}-hda-decoder +Requires: %{name}-ifdtool +Requires: %{name}-intelmetool +Requires: %{name}-intelp2m +Requires: %{name}-inteltool +Requires: %{name}-kbc1126 +Requires: %{name}-mediatek-coreboot-utilities +Requires: %{name}-mma +Requires: %{name}-msrtool +Requires: %{name}-nvramtool +Requires: %{name}-pmh7tool +Requires: %{name}-post +Requires: %{name}-qualcomm-coreboot-utilities +Requires: %{name}-riscv-coreboot-utilities +Requires: %{name}-rockchip-coreboot-utilities +Requires: %{name}-scripts +Requires: %{name}-smmstoretool +Requires: %{name}-spd_tools +Requires: %{name}-spdtool +Requires: %{name}-spkmodem_recv +Requires: %{name}-superiotool +Requires: %{name}-xcompile + +%description all +%summary. + +%package abuild +Summary: coreboot autobuild script builds coreboot images for all available targets +Requires: coreboot-utils = %{version} +Conflicts: abuild <= 25.06 +Obsoletes: abuild <= 25.06 +%description abuild +%summary. + +%package amdfwtool +Summary: Create AMD Firmware combination +Requires: coreboot-utils = %{version} +Requires: glibc +%description amdfwtool +%summary. + +%package amdtools +Summary: Various tools for AMD processors +Requires: coreboot-utils = %{version} +Requires: perl +Requires: bash +%description amdtools +%summary. + +%package apcb +Summary: AMD PSP Control Block tools +Requires: coreboot-utils = %{version} +Requires: python3 +%description apcb +The necessary tools for building APCBs are not available for use by coreboot. +This tool allows patching an existing APCB binary with specific SPDs +and GPIO selection pins. + +apcb_edit - This tool allows patching an existing APCB binary with specific SPDs and GPIO selection pins. +apcb_v3_edit - This tool allows patching an existing APCB v3 binary with up to 16 specific SPDs. + +%dnl %package archive - ### Currently bugged and does not compile ### +%dnl Requires: coreboot-utils = %{version} +%dnl Summary: Concatenate files and create an archive +%dnl %description archive +%dnl %summary. + +%package autoport +Summary: Porting coreboot using autoport + +Requires: coreboot-utils = %{version} +Requires: acpica-tools +Requires: dmidecode +Requires: ectool +Requires: glibc +Requires: pciutils +Requires: inteltool = %{version} +Requires: superiotool = %{version} + +%description autoport +Automated porting coreboot to Sandy Bridge/Ivy Bridge/Haswell platforms. + +%package bincfg +Summary: Compiler/Decompiler for data blobs with specs +Requires: coreboot-utils = %{version} +%description bincfg +%summary. + +%package board_status +Summary: Tools to collect logs and upload them to the board status repository +Requires: coreboot-utils = %{version} +Requires: bash +%description board_status +%summary. + +%ifarch x86_64 +%package bucts +Summary: A tool to manipulate the BUC.TS bit on Intel targets +Requires: coreboot-utils = %{version} +%description bucts +%summary. +%endif + +%package cbfstool +Summary: Management utility for CBFS formatted ROM images +Requires: coreboot-utils = %{version} +Conflicts: cbfstool <= 25.06 +Obsoletes: cbfstool <= 25.06 +%description cbfstool +%summary. + +%package cbfstool-tests +Summary: CBFSTool tests +Requires: coreboot-utils = %{version} +Requires: coreboot-utils-cbfstool = %{version} +Requires: python3 +Requires: python3-pytest +%description cbfstool-tests +%summary. + +%package cbmem +Summary: Prints out coreboot mem table information +Requires: coreboot-utils = %{version} +Requires: glibc +Conflicts: cbmem <= 25.06 +Obsoletes: cbmem <= 25.06 +%description cbmem +Prints out coreboot mem table information in JSON by default, and also implements the basic cbmem -list and -console commands. + +%package chromeos-coreboot-utilities +Requires: coreboot-utils = %{version} +Requires: bash +Summary: access or generate ChromeOS resources +%description chromeos-coreboot-utilities +These scripts can be used to access or generate ChromeOS resources, for example +to extract System Agent reference code and other blobs (e.g. `mrc.bin`, refcode, +VGA option roms) from a ChromeOS recovery image. + +%package coreboot-configurator +Summary: A simple GUI to change settings in coreboot's CBFS, via the nvramtool utility + +Requires: coreboot-utils = %{version} +Requires: coreboot-utils-nvramtool = %{version} +Requires: qt5-qtbase +Requires: qt5-qtsvg +Requires: yaml-cpp + +%description coreboot-configurator +%summary. + +%package doc +Summary: Coreboot utility documentation +Requires: coreboot-utils = %{version} +%description doc +%summary. + +%ifarch x86_64 +%package ectool +Summary: Dumps the RAM of a laptop's Embedded/Environmental Controller (EC) +Requires: coreboot-utils = %{version} +Requires: glibc +Conflicts: chromium-ectool +%description ectool +%summary. +%endif + +%package exynos +Summary: Computes and fills Exynos ROM checksum (for BL1 or BL2) +Requires: coreboot-utils = %{version} +Requires: python3 +%description exynos +%summary. + +%package find_usbdebug +Summary: Help find USB debug ports +Requires: coreboot-utils = %{version} +Requires: bash +%description find_usbdebug +%summary. + +%package futility +Summary: Firmware utility for signing ChromeOS images +Requires: coreboot-utils = %{version} +%description futility +%summary. + +%package genbuild_h +Summary: Generate build system definitions +Requires: coreboot-utils = %{version} +Requires: bash +%description genbuild_h +%summary. + +%package hda-decoder +Summary: Dumps decoded HDA default configuration registers into a format which can be used in coreboot's verb table +Requires: coreboot-utils = %{version} +%description hda-decoder +%summary. + +%package ifdtool +Summary: Extract and dump Intel Firmware Descriptor information + +Requires: coreboot-utils = %{version} +Requires: glibc +Requires: pciutils +Requires: zlib-ng + +%description ifdtool +%summary. + +%ifarch x86_64 +%package intelmetool +Summary: Dump interesting things about Management Engine even if hidden + +Requires: coreboot-utils = %{version} +Requires: glibc +Requires: pciutils +Requires: zlib-ng + +%description intelmetool +%summary. +%endif + +%ifarch x86_64 +%package intelp2m +Summary: convert the configuration DW0/1 registers value from an inteltool dump to coreboot macros +Requires: coreboot-utils = %{version} +%description intelp2m +%summary. +%endif + +%ifarch x86_64 +%package inteltool +Summary: Provides information about the Intel CPU/chipset hardware configuration + +Requires: coreboot-utils = %{version} +Requires: glibc +Requires: pciutils +Requires: zlib-ng + +%description inteltool +%summary. +%endif + +%package intelvbttool +Summary: Parse VBT from VGA BIOS +Requires: coreboot-utils = %{version} +Requires: glibc +%description intelvbttool +%summary. + +%package kbc1126 +Summary: dump the two blobs from the factory firmware of some HP laptops +Requires: coreboot-utils = %{version} +%description kbc1126 +Tools used to dump the two blobs from the factory firmware of many HP +laptops with 8051-based SMSC KBC1098/KBC1126 embedded controller and +insert them to the firmware image. + +%package mediatek-coreboot-utilities +Summary: Generate MediaTek bootload header +Requires: coreboot-utils = %{version} +Requires: python3 +%description mediatek-coreboot-utilities +check-pi-img.py - Check `PI_IMG` firmware. +gen-bl-img.py - Generate MediaTek bootloader header. + +%package mma +Summary: Memory Margin Analysis automation tests +Requires: coreboot-utils = %{version} +Requires: bash +%description mma +%summary. + +%package msrtool +Summary: Dumps chipset-specific MSR registers +Requires: coreboot-utils = %{version} +%description msrtool +%summary. + +%ifarch x86_64 +%package nvramtool +Summary: Reads and writes coreboot parameters and displaying information from the coreboot table in CMOS/NVRAM +Requires: coreboot-utils = %{version} +%description nvramtool +%summary. +%endif + +%ifarch x86_64 +%package pmh7tool +Summary: Dumps, reads and writes PMH7 registers on Lenovo ThinkPads. PMH7 is used for switching on and off the power of some devices on the board such as dGPU +Requires: coreboot-utils = %{version} +%description pmh7tool +%summary. +%endif + +%ifarch x86_64 +%package post +Summary: Userspace utility that can be used to test POST cards +Requires: coreboot-utils = %{version} +%description post +%summary. +%endif + +%package qualcomm-coreboot-utilities +Summary: CMM script to debug Qualcomm coreboot environments +Requires: coreboot-utils = %{version} +Requires: python3 +%description qualcomm-coreboot-utilities +CMM script to debug Qualcomm coreboot environments. + +createxbl - Concatenates XBL segments into one ELF image +ipqheader - Returns a packed MBN header image with the specified base and size +mbncat - Generate ipq8064 uber SBL +mbn_tools - Contains all MBN Utilities for image generation + +%package riscv-coreboot-utilities +Summary: riscv coreboot utilities +Requires: coreboot-utils = %{version} +Requires: bash +Requires: python3 +%description riscv-coreboot-utilities +%summary. + +%package rockchip-coreboot-utilities +Summary: Generate Rockchip idblock bootloader +Requires: coreboot-utils = %{version} +Requires: python3 +%description rockchip-coreboot-utilities +%summary. + +%package scripts +Summary: Various coreboot utility scripts + +Requires: coreboot-utils = %{version} +Requires: perl +Requires: bash + +%description scripts +- capture_commands.sh - Write all commands from the build to a file. +- config - Manipulate options in a .config file from the command line. +- cross-repo-cherrypick - Pull in patches from another tree from a gerrit repository. +- decode_spd.sh - Decodes Serial Presence Detect (SPD) files into various human readable formats. +- dts-to-fmd.sh -Converts a depthcharge fmap.dts into an fmaptool compatible .fmd format. +- find_new_user_commits.sh - Finds new gerrit committers. +- find-unused-kconfig-symbols.sh - Points out Kconfig variables that may be unused. There are some false positives, but it serves as a starting point. +- gerrit-rebase - Applies all commits that from-branch has over to-branch, based on a common ancestor and gerrit meta-data. +- get_maintainer.pl - Print selected MAINTAINERS information for the files modified in a patch or for a file. +- maintainers.go - Build subsystem Maintainers. +- no-fsf-addresses.sh - Removes various FSF addresses from license headers. +- parse-maintainers.pl - Script to alphabetize MAINTAINERS file. +- rm_unused_code - Remove all code not used for a platform from the local git repository for auditing or release. +- show_platforms.sh - Makes a list of platforms in the tree. Does not show variants. +- ucode_h_to_bin.sh - Microcode conversion tool. +- update_submodules - Check all submodules for updates. + +%ifarch x86_64 +%package smmstoretool +Summary: Offline SMMSTORE variable modification tool +Requires: coreboot-utils = %{version} +%description smmstoretool +%summary. +%endif + +%package spdtool +Summary: Dumps SPD ROMs from a given blob to separate files using known patterns and reserved bits +Requires: coreboot-utils = %{version} +Requires: python3 +%description spdtool +Dumps SPD ROMs from a given blob to separate files using known patterns +and reserved bits. Useful for analysing firmware that holds SPDs on boards +that have soldered down DRAM. + +%package spd_tools +Summary: A set of tools to generate SPD files for platforms with memory down configurations +Requires: coreboot-utils = %{version} +%description spd_tools +%summary. + +%package spkmodem_recv +Summary: Decode spkmodem signals +Requires: coreboot-utils = %{version} +%description spkmodem_recv +%summary. + +%ifarch x86_64 +%package superiotool +Summary: A user-space utility to detect Super I/O of a mainboard and provide detailed information about the register contents of the Super I/O +Requires: coreboot-utils = %{version} +%description superiotool +%summary. +%endif + +%package xcompile +Summary: Cross compile setup +Requires: coreboot-utils = %{version} +%description xcompile +%summary. + +%prep +%git_clone https://review.coreboot.org/coreboot.git %{version} +%patch -P0 -p1 +%patch -P1 -p1 + +%build +%if 0%{?fedora} >= 42 +export CC=gcc-14 +export CXX=g++-14 +%endif + +pushd util +%make_build -C amdfwtool LDFLAGS="-fPIE -lcrypto" +%dnl %make_build -C archive # bugged upstream, does not build +%make_build -C bincfg +%ifarch x86_64 +%make_build -C bucts LDFLAGS="-fPIE" +%endif +%make_build -C cbmem CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" +%make_build -C cbfstool +%ifarch x86_64 +%make_build -C ectool LDFLAGS="-fPIE" +%endif +%make_build -C futility +%make_build -C hda-decoder +%make_build -C ifdtool +%ifarch x86_64 +%make_build -C intelmetool CFLAGS="%{optflags} -I %{_builddir}/coreboot/src/commonlib/bsd/include" +%endif +%ifarch x86_64 +%make_build -C intelp2m +%endif +%ifarch x86_64 +%make_build -C inteltool +%endif +%ifarch x86_64 +%make_build -C intelvbttool +%endif +%make_build -C kbc1126 +%ifarch x86_64 +%make_build -C nvramtool LDFLAGS="-fPIE" +%endif +%ifarch x86_64 +%make_build -C pmh7tool LDFLAGS="-fPIE" +%endif +%ifarch x86_64 +%make_build -C post +%endif +%make_build -C riscv/starfive-jh7110-spl-tool LDFLAGS="-fPIE" +%ifarch x86_64 +%make_build -C smmstoretool CFLAGS="$CFLAGS -U_FORTIFY_SOURCE" +%endif +%make_build -C spd_tools +%make_build -C spkmodem_recv +%ifarch x86_64 +%make_build -C superiotool +%endif + +pushd autoport +export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" +%gobuild -o %{_builddir}/autoport +popd + +%ifarch x86_64 +pushd msrtool +./configure +%make_build +popd +%endif + +pushd coreboot-configurator +%meson +%meson_build +popd +popd + +%install +install -Dm 777 util/abuild/abuild %{buildroot}%{_bindir}/abuild + +install -Dm 755 util/amdfwtool/amdfwtool %{buildroot}%{_bindir}/amdfwtool +install -Dm 755 util/amdfwtool/amdfwread %{buildroot}%{_bindir}/amdfwread + +install -Dm 755 util/amdtools/k8-compare-pci-space.pl %{buildroot}%{_bindir}/k8-compare-pci-space +install -Dm 755 util/amdtools/k8-interpret-extended-memory-settings.pl %{buildroot}%{_bindir}/k8-interpret-extended-memory-settings +install -Dm 755 util/amdtools/k8-read-mem-settings.sh %{buildroot}%{_bindir}/k8-read-mem-settings +install -Dm 755 util/amdtools/parse-bkdg.pl %{buildroot}%{_bindir}/parse-bkdg +install -Dm 755 util/amdtools/update_efs_spi_speed %{buildroot}%{_bindir}/update_efs_spi_speed + +install -Dm 755 util/apcb/apcb_edit.py %{buildroot}%{_bindir}/apcb_edit +install -Dm 755 util/apcb/apcb_v3a_edit.py %{buildroot}%{_bindir}/apcb_v3a_edit +install -Dm 755 util/apcb/apcb_v3_edit.py %{buildroot}%{_bindir}/apcb_v3_edit + +%dnl install -Dm 777 util/archive/archive %{buildroot}%{_bindir}/archive + +install -Dm 755 %{_builddir}/autoport %{buildroot}%{_bindir}/autoport + +install -Dm 755 util/bincfg/bincfg %{buildroot}%{_bindir}/bincfg + +install -Dm 755 util/board_status/board_status.sh %{buildroot}%{_bindir}/board_status +install -Dm 755 util/board_status/getrevision.sh %{buildroot}%{_bindir}/getrevision +install -Dm 755 util/board_status/set_up_live_image.sh %{buildroot}%{_bindir}/set_up_live_image + +%ifarch x86_64 +install -Dm 755 util/bucts/bucts %{buildroot}%{_bindir}/bucts +%endif + +install -Dm 755 util/cbfstool/cbfstool %{buildroot}%{_bindir}/cbfstool + +install -Dm 755 util/cbfstool/tests/conftest.py %{buildroot}%{_bindir}/conftest +install -Dm 755 util/cbfstool/tests/elogtool_test.py %{buildroot}%{_bindir}/elogtool_test + +install -Dm 755 util/cbmem/cbmem %{buildroot}%{_bindir}/cbmem + +install -Dm 755 util/chromeos/crosfirmware.sh %{buildroot}%{_bindir}/crosfirmware +install -Dm 755 util/chromeos/extract_blobs.sh %{buildroot}%{_bindir}/extract_blobs +install -Dm 755 util/chromeos/gen_test_hwid.sh %{buildroot}%{_bindir}/gen_test_hwid +install -Dm 755 util/chromeos/update_ec_headers.sh %{buildroot}%{_bindir}/update_ec_headers + +install -Dm 755 util/coreboot-configurator/redhat-linux-build/src/application/coreboot-configurator %{buildroot}%{_bindir}/coreboot-configurator +install -Dm 644 util/coreboot-configurator/src/resources/org.coreboot.nvramtool.policy %{buildroot}%{_datadir}/polkit-1/actions/org.coreboot.nvramtool.policy +install -Dm 644 util/coreboot-configurator/src/resources/org.coreboot.reboot.policy %{buildroot}%{_datadir}/polkit-1/actions/org.coreboot.reboot.policy +install -Dm 644 util/coreboot-configurator/src/resources/coreboot-configurator.desktop %{buildroot}%{_datadir}/applications/coreboot-configurator.desktop +install -Dm 644 util/coreboot-configurator/redhat-linux-build/src/resources/24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/coreboot-configurator.png +install -Dm 644 util/coreboot-configurator/redhat-linux-build/src/resources/48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/coreboot-configurator.png +install -Dm 644 util/coreboot-configurator/redhat-linux-build/src/resources/96.png %{buildroot}%{_datadir}/icons/hicolor/96x96/apps/coreboot-configurator.png +install -Dm 644 util/coreboot-configurator/redhat-linux-build/src/resources/16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/coreboot-configurator.png +install -Dm 644 util/coreboot-configurator/redhat-linux-build/src/resources/32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/coreboot-configurator.png +install -Dm 644 util/coreboot-configurator/redhat-linux-build/src/resources/64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/coreboot-configurator.png +install -Dm 644 util/coreboot-configurator/redhat-linux-build/src/resources/128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/coreboot-configurator.png +install -Dm 644 util/coreboot-configurator/redhat-linux-build/src/resources/256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/coreboot-configurator.png +install -Dm 644 util/coreboot-configurator/redhat-linux-build/src/resources/512.png %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/coreboot-configurator.png + +%ifarch x86_64 +install -Dm 755 util/ectool/ectool %{buildroot}%{_bindir}/ectool +%endif + +install -Dm 755 util/exynos/fixed_cksum.py %{buildroot}%{_bindir}/fixed_cksum +install -Dm 755 util/exynos/variable_cksum.py %{buildroot}%{_bindir}/variable_cksum + +install -Dm 755 util/find_usbdebug/find_usbdebug.sh %{buildroot}%{_bindir}/find_usbdebug + +install -Dm 755 util/futility/futility %{buildroot}%{_bindir}/futility + +install -Dm 755 util/genbuild_h/genbuild_h.sh %{buildroot}%{_bindir}/genbuild_h + +install -Dm 755 util/hda-decoder/hda-decoder %{buildroot}%{_bindir}/hda-decoder + +install -Dm 755 util/ifdtool/ifdtool %{buildroot}%{_bindir}/ifdtool + +%ifarch x86_64 +install -Dm 755 util/intelmetool/intelmetool %{buildroot}%{_bindir}/intelmetool +%endif + +%ifarch x86_64 +install -Dm 755 util/intelp2m/intelp2m %{buildroot}%{_bindir}/intelp2m +%endif + +%ifarch x86_64 +install -Dm 755 util/inteltool/inteltool %{buildroot}%{_bindir}/inteltool +%endif + +%ifarch x86_64 +install -Dm 755 util/intelvbttool/intelvbttool %{buildroot}%{_bindir}/intelvbttool +%endif + +install -Dm 755 util/kbc1126/kbc1126_ec_dump %{buildroot}%{_bindir}/kbc1126_ec_dump +install -Dm 755 util/kbc1126/kbc1126_ec_insert %{buildroot}%{_bindir}/kbc1126_ec_insert + +install -Dm 755 util/mediatek/check-pi-img.py %{buildroot}%{_bindir}/check-pi-img +install -Dm 755 util/mediatek/gen-bl-img.py %{buildroot}%{_bindir}/gen-bl-img + +install -Dm 755 util/mma/mma_automated_test.sh %{buildroot}%{_bindir}/mma_automated_test +install -Dm 755 util/mma/mma_get_result.sh %{buildroot}%{_bindir}/mma_get_result +install -Dm 755 util/mma/mma_setup_test.sh %{buildroot}%{_bindir}/mma_setup_test + +%ifarch x86_64 +install -Dm 755 util/msrtool/msrtool %{buildroot}%{_bindir}/msrtool +%endif + +%ifarch x86_64 +install -Dm 755 util/nvramtool/nvramtool %{buildroot}%{_bindir}/nvramtool +%endif + +%ifarch x86_64 +install -Dm 755 util/pmh7tool/pmh7tool %{buildroot}%{_bindir}/pmh7tool +%endif + +%ifarch x86_64 +install -Dm 755 util/post/post %{buildroot}%{_bindir}/post +%endif + +install -Dm 755 util/qualcomm/createxbl.py %{buildroot}%{_bindir}/createxbl +install -Dm 755 util/qualcomm/create_multielf.py %{buildroot}%{_bindir}/create_multielf +install -Dm 755 util/qualcomm/ipqheader.py %{buildroot}%{_bindir}/ipqheader +install -Dm 755 util/qualcomm/mbncat.py %{buildroot}%{_bindir}/mbncat +install -Dm 755 util/qualcomm/mbn_tools.py %{buildroot}%{_bindir}/mbn_tools +install -Dm 755 util/qualcomm/qgpt.py %{buildroot}%{_bindir}/qgpt +install -Dm 755 util/qualcomm/elf_segment_extractor.py %{buildroot}%{_bindir}/elf_segment_extractor + +install -Dm 755 util/riscv/make-spike-elf.sh %{buildroot}%{_bindir}/make-spike-elf +install -Dm 755 util/riscv/sifive-gpt.py %{buildroot}%{_bindir}/sifive-gpt +install -Dm 755 util/riscv/starfive-jh7110-spl-tool/spl_tool %{buildroot}%{_bindir}/spl_tool + +install -Dm 755 util/rockchip/make_idb.py %{buildroot}%{_bindir}/make_idb + +install -Dm 755 util/scripts/capture_commands.sh %{buildroot}%{_bindir}/capture_commands +install -Dm 755 util/scripts/config %{buildroot}%{_bindir}/config +install -Dm 755 util/scripts/cross-repo-cherrypick %{buildroot}%{_bindir}/cross-repo-cherrypick +install -Dm 755 util/scripts/decode_spd.sh %{buildroot}%{_bindir}/decode_spd +install -Dm 755 util/scripts/dts-to-fmd.sh %{buildroot}%{_bindir}/dts-to-fmd +install -Dm 755 util/scripts/find_new_user_commits.sh %{buildroot}%{_bindir}/find_new_user_commits +install -Dm 755 util/scripts/find-unused-kconfig-symbols.sh %{buildroot}%{_bindir}/find-unused-kconfig-symbols +install -Dm 755 util/scripts/gerrit-rebase %{buildroot}%{_bindir}/gerrit-rebase +install -Dm 755 util/scripts/get_maintainer.pl %{buildroot}%{_bindir}/get_maintainer +install -Dm 755 util/scripts/no-fsf-addresses.sh %{buildroot}%{_bindir}/no-fsf-addresses +install -Dm 755 util/scripts/parse-maintainers.pl %{buildroot}%{_bindir}/parse-maintainers +install -Dm 755 util/scripts/prepare-commit-msg.clang-format %{buildroot}%{_bindir}/prepare-commit-msg.clang-format +install -Dm 755 util/scripts/rm_unused_code %{buildroot}%{_bindir}/rm_unused_code +install -Dm 755 util/scripts/show_platforms.sh %{buildroot}%{_bindir}/show_platforms +install -Dm 755 util/scripts/testsoc %{buildroot}%{_bindir}/testsoc +install -Dm 755 util/scripts/ucode_h_to_bin.sh %{buildroot}%{_bindir}/ucode_h_to_bin +install -Dm 755 util/scripts/update_submodules %{buildroot}%{_bindir}/update_submodules + +%ifarch x86_64 +install -Dm 755 util/smmstoretool/smmstoretool %{buildroot}%{_bindir}/smmstoretool +%endif + +install -Dm 755 util/spdtool/spdtool.py %{buildroot}%{_bindir}/spdtool + +install -Dm 755 util/spd_tools/bin/part_id_gen %{buildroot}%{_bindir}/part_id_gen +install -Dm 755 util/spd_tools/bin/spd_gen %{buildroot}%{_bindir}/spd_gen + +install -Dm 755 util/spkmodem_recv/spkmodem-recv %{buildroot}%{_bindir}/spkmodem-recv + +%ifarch x86_64 +install -Dm 755 util/superiotool/superiotool %{buildroot}%{_bindir}/superiotool +%endif + +install -Dm 755 util/xcompile/xcompile %{buildroot}%{_libdir}/xcompile + +# Install documentation files to appropriate subdirectries within docdir to prevent multiple files of the same name +mkdir -p %{buildroot}%{_docdir}/coreboot-utils/abuild +mkdir -p %{buildroot}%{_docdir}/coreboot-utils/cbfstool +mkdir -p %{buildroot}%{_docdir}/coreboot-utils/ifdtool +mkdir -p %{buildroot}%{_docdir}/coreboot-utils/intelp2m +mkdir -p %{buildroot}%{_docdir}/coreboot-utils/smmstoretool + +cp Documentation/util.md %{buildroot}%{_docdir}/coreboot-utils/util.md +cp Documentation/cbfs.txt %{buildroot}%{_docdir}/coreboot-utils/cbfs.txt +cp Documentation/util/abuild/index.md %{buildroot}%{_docdir}/coreboot-utils/abuild/index.md +cp Documentation/util/cbfstool/index.md %{buildroot}%{_docdir}/coreboot-utils/cbfstool/index.md +cp Documentation/util/cbfstool/mmap_windows.md %{buildroot}%{_docdir}/coreboot-utils/cbfstool/mmap_windows.md +cp Documentation/util/ifdtool/binary_extraction.md %{buildroot}%{_docdir}/coreboot-utils/ifdtool/binary_extraction.md +cp Documentation/util/ifdtool/index.md %{buildroot}%{_docdir}/coreboot-utils/ifdtool/index.md +cp Documentation/util/ifdtool/layout.md %{buildroot}%{_docdir}/coreboot-utils/ifdtool/layout.md +cp Documentation/util/intelp2m/index.md %{buildroot}%{_docdir}/coreboot-utils/intelp2m/index.md +cp Documentation/util/smmstoretool/index.md %{buildroot}%{_docdir}/coreboot-utils/smmstoretool/index.md + +%files +%doc util/README.md AUTHORS MAINTAINERS +%license COPYING +%license LICENSES/* + +%files abuild +%{_bindir}/abuild + +%files amdfwtool +%{_bindir}/amdfwtool +%{_bindir}/amdfwread + +%files amdtools +%{_bindir}/k8-compare-pci-space +%{_bindir}/k8-interpret-extended-memory-settings +%{_bindir}/k8-read-mem-settings +%{_bindir}/parse-bkdg +%{_bindir}/update_efs_spi_speed +%doc util/amdtools/*.md + +%files apcb +%{_bindir}/apcb_edit +%{_bindir}/apcb_v3a_edit +%{_bindir}/apcb_v3_edit +%doc util/apcb/README +%doc util/apcb/description.md + +%dnl %files archive +%dnl %{_bindir}/archive +%dnl %doc util/archive/description.md + +%files autoport +%{_bindir}/autoport +%doc util/autoport/*.md + +%files bincfg +%{_bindir}/bincfg +%doc util/bincfg/description.md + +%files board_status +%{_bindir}/board_status +%{_bindir}/getrevision +%{_bindir}/set_up_live_image +%doc util/board_status/*.md + +%ifarch x86_64 +%files bucts +%{_bindir}/bucts +%doc util/bucts/*.md +%endif + +%files cbfstool +%{_bindir}/cbfstool +%doc util/cbfstool/description.md + +%files cbfstool-tests +%{_bindir}/conftest +%{_bindir}/elogtool_test +%doc util/cbfstool/tests/README.md + +%files cbmem +%{_bindir}/cbmem +%doc util/cbmem/description.md + +%files chromeos-coreboot-utilities +%{_bindir}/crosfirmware +%{_bindir}/extract_blobs +%{_bindir}/gen_test_hwid +%{_bindir}/update_ec_headers +%doc util/chromeos/*.md + +%files coreboot-configurator +%{_bindir}/coreboot-configurator +%{_datadir}/polkit-1/actions/org.coreboot.nvramtool.policy +%{_datadir}/polkit-1/actions/org.coreboot.reboot.policy +%{_datadir}/applications/coreboot-configurator.desktop +%{_datadir}/icons/hicolor/24x24/apps/coreboot-configurator.png +%{_datadir}/icons/hicolor/48x48/apps/coreboot-configurator.png +%{_datadir}/icons/hicolor/96x96/apps/coreboot-configurator.png +%{_datadir}/icons/hicolor/16x16/apps/coreboot-configurator.png +%{_datadir}/icons/hicolor/32x32/apps/coreboot-configurator.png +%{_datadir}/icons/hicolor/64x64/apps/coreboot-configurator.png +%{_datadir}/icons/hicolor/128x128/apps/coreboot-configurator.png +%{_datadir}/icons/hicolor/256x256/apps/coreboot-configurator.png +%{_datadir}/icons/hicolor/512x512/apps/coreboot-configurator.png +%doc util/coreboot-configurator/README.md + +%files doc +%{_docdir}/coreboot-utils/util.md +%{_docdir}/coreboot-utils/cbfs.txt +%{_docdir}/coreboot-utils/abuild/index.md +%{_docdir}/coreboot-utils/cbfstool/index.md +%{_docdir}/coreboot-utils/cbfstool/mmap_windows.md +%{_docdir}/coreboot-utils/ifdtool/binary_extraction.md +%{_docdir}/coreboot-utils/ifdtool/index.md +%{_docdir}/coreboot-utils/ifdtool/layout.md +%{_docdir}/coreboot-utils/intelp2m/index.md +%{_docdir}/coreboot-utils/smmstoretool/index.md +%license Documentation/COPYING + +%ifarch x86_64 +%files ectool +%{_bindir}/ectool +%doc util/ectool/description.md +%endif + +%files exynos +%{_bindir}/fixed_cksum +%{_bindir}/variable_cksum +%doc util/exynos/description.md + +%files find_usbdebug +%{_bindir}/find_usbdebug +%doc util/find_usbdebug/description.md + +%files futility +%{_bindir}/futility +%doc util/futility/description.md + +%files genbuild_h +%{_bindir}/genbuild_h +%doc util/genbuild_h/description.md + +%files hda-decoder +%{_bindir}/hda-decoder +%doc util/hda-decoder/description.md + +%files ifdtool +%{_bindir}/ifdtool +%doc util/ifdtool/description.md + +%ifarch x86_64 +%files intelmetool +%{_bindir}/intelmetool +%doc util/intelmetool/description.md +%endif + +%ifarch x86_64 +%files intelp2m +%{_bindir}/intelp2m +%doc util/intelp2m/description.md +%endif + +%ifarch x86_64 +%files inteltool +%{_bindir}/inteltool +%doc util/inteltool/description.md +%endif + +%ifarch x86_64 +%files intelvbttool +%{_bindir}/intelvbttool +%doc util/intelvbttool/description.md +%endif + +%files kbc1126 +%{_bindir}/kbc1126_ec_dump +%{_bindir}/kbc1126_ec_insert +%doc util/kbc1126/*.md + +%files mediatek-coreboot-utilities +%{_bindir}/gen-bl-img +%{_bindir}/check-pi-img +%doc util/mediatek/description.md + +%files mma +%{_bindir}/mma_automated_test +%{_bindir}/mma_get_result +%{_bindir}/mma_setup_test +%doc util/mma/description.md + +%ifarch x86_64 +%files msrtool +%{_bindir}/msrtool +%doc util/msrtool/README +%doc util/msrtool/description.md +%endif + +%ifarch x86_64 +%files nvramtool +%{_bindir}/nvramtool +%doc util/nvramtool/README +%doc util/nvramtool/DISCLAIMER +%doc util/nvramtool/description.md +%endif + +%ifarch x86_64 +%files pmh7tool +%{_bindir}/pmh7tool +%doc util/pmh7tool/description.md +%endif + +%ifarch x86_64 +%files post +%{_bindir}/post +%doc util/post/README +%doc util/post/description.md +%endif + +%files qualcomm-coreboot-utilities +%{_bindir}/createxbl +%{_bindir}/create_multielf +%{_bindir}/ipqheader +%{_bindir}/mbncat +%{_bindir}/mbn_tools +%{_bindir}/qgpt +%{_bindir}/elf_segment_extractor +%doc util/qualcomm/description.md + +%files riscv-coreboot-utilities +%{_bindir}/make-spike-elf +%{_bindir}/sifive-gpt +%{_bindir}/spl_tool +%doc util/riscv/description.md +%doc util/riscv/starfive-jh7110-spl-tool/README.md + +%files rockchip-coreboot-utilities +%{_bindir}/make_idb +%license util/rockchip/LICENSE +%doc util/rockchip/description.md + +%files scripts +%{_bindir}/capture_commands +%{_bindir}/config +%{_bindir}/cross-repo-cherrypick +%{_bindir}/decode_spd +%{_bindir}/dts-to-fmd +%{_bindir}/find_new_user_commits +%{_bindir}/find-unused-kconfig-symbols +%{_bindir}/gerrit-rebase +%{_bindir}/get_maintainer +%{_bindir}/no-fsf-addresses +%{_bindir}/parse-maintainers +%{_bindir}/prepare-commit-msg.clang-format +%{_bindir}/rm_unused_code +%{_bindir}/show_platforms +%{_bindir}/testsoc +%{_bindir}/ucode_h_to_bin +%{_bindir}/update_submodules +%doc util/scripts/description.md + +%ifarch x86_64 +%files smmstoretool +%{_bindir}/smmstoretool +%doc util/smmstoretool/description.md +%endif + +%files spdtool +%{_bindir}/spdtool +%doc util/spdtool/description.md + +%files spd_tools +%{_bindir}/part_id_gen +%{_bindir}/spd_gen +%doc util/spd_tools/README.md + +%files spkmodem_recv +%{_bindir}/spkmodem-recv +%doc util/spkmodem_recv/description.md + +%ifarch x86_64 +%files superiotool +%{_bindir}/superiotool +%doc util/superiotool/README +%doc util/superiotool/description.md +%endif + +%files xcompile +%{_libdir}/xcompile +%doc util/xcompile/description.md + +%changelog +* Wed Jul 30 2025 Owen Zimmerman +- Initial Package diff --git a/anda/tools/coreboot-utils/elf_segment_extractor-python3.patch b/anda/tools/coreboot-utils/elf_segment_extractor-python3.patch new file mode 100644 index 0000000000..f4344a98cb --- /dev/null +++ b/anda/tools/coreboot-utils/elf_segment_extractor-python3.patch @@ -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 diff --git a/anda/tools/coreboot-utils/spdtool-python3.patch b/anda/tools/coreboot-utils/spdtool-python3.patch new file mode 100644 index 0000000000..c677b7e380 --- /dev/null +++ b/anda/tools/coreboot-utils/spdtool-python3.patch @@ -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 + # diff --git a/anda/tools/coreboot-utils/update.rhai b/anda/tools/coreboot-utils/update.rhai new file mode 100644 index 0000000000..95fe2d2cf6 --- /dev/null +++ b/anda/tools/coreboot-utils/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("coreboot/coreboot"));