From f74870eada3f6eed4746c77b6e7eeadac5e42774 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Sat, 7 May 2022 00:26:06 +0200 Subject: pcr: libreboot-utils: Add bincfg The bincfg utility enable to convert various binary formats to text file and vice-versa. It supports the GM45 Intel Flash Descriptor (IFD) which is contains the flash chip partition table and various settings including read/write permissions for the various flash partitions. Beware when changing the values in ways that have not been tested before as it could lead to non-booting computers. This is for instance the case when trying to set the BIOS partition read-only for all "CPUs" (Management Engine, main CPU, and Gigabit Ethernet). Signed-off-by: Denis 'GNUtoo' Carikli --- pcr/libreboot-utils/PKGBUILD | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'pcr/libreboot-utils') diff --git a/pcr/libreboot-utils/PKGBUILD b/pcr/libreboot-utils/PKGBUILD index f5a183b60..e3627126d 100644 --- a/pcr/libreboot-utils/PKGBUILD +++ b/pcr/libreboot-utils/PKGBUILD @@ -4,7 +4,7 @@ # Maintainers: Parabola hackers pkgname=libreboot-utils -pkgrel=7 +pkgrel=8 _upstream_ver=20211122 pkgver=4.15.libreboot${_upstream_ver} pkgdesc="Misc. Coreboot/Libreboot utils (bucts, cbfstool, ECtool, nvramtool, superiotool)" @@ -69,6 +69,9 @@ build() { make -C superiotool fi + # Build bincfg. + make -C bincfg WERROR="" + # Build cbfstool. make -C cbfstool WERROR='' @@ -100,6 +103,24 @@ package() { make -C superiotool install DESTDIR="${pkgdir}" PREFIX=/usr fi + # Install bincfg. + install -Dm755 bincfg/bincfg "${pkgdir}"/usr/bin/bincfg + + install -d "${pkgdir}"/usr/share/bincfg + for _file in ddr3_unregistered_spd_128.spec \ + ddr3_unregistered_spd_256.spec \ + ddr4_registered_spd_512.spec \ + ddr4_unbuffered_spd_512.spec \ + gbe-82579LM.set \ + gbe-82579LM.spec \ + gbe-ich9m.set \ + gbe-ich9m.spec \ + ifd-x200.set \ + ifd-x200.spec \ + it8718f-ec.spec ; do + install -Dm644 bincfg/"${_file}" "${pkgdir}"/usr/share/bincfg/"${_file}" + done + # Install cbfstool. make -C cbfstool install DESTDIR="${pkgdir}" PREFIX=/usr -- cgit v1.2.3