summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-05-07 00:26:06 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-05-07 00:47:12 +0200
commitf74870eada3f6eed4746c77b6e7eeadac5e42774 (patch)
treea18ae8808d8c442579f95c073ea929c8c9b69118 /pcr
parent629631128e1f9adcd6aae5b064190a99d4f0b829 (diff)
downloadabslibre-f74870eada3f6eed4746c77b6e7eeadac5e42774.tar.gz
abslibre-f74870eada3f6eed4746c77b6e7eeadac5e42774.tar.bz2
abslibre-f74870eada3f6eed4746c77b6e7eeadac5e42774.zip
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 <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr')
-rw-r--r--pcr/libreboot-utils/PKGBUILD23
1 files changed, 22 insertions, 1 deletions
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 <dev@lists.parabola.nu>
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