summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-05-07 00:50:21 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-05-07 00:53:56 +0200
commit0b49c28ca831dfca227718c3ff81fa3355fb2bc1 (patch)
tree8fc557b0008103d0feb256767a425c44a843fcd0
parentf74870eada3f6eed4746c77b6e7eeadac5e42774 (diff)
downloadabslibre-0b49c28ca831dfca227718c3ff81fa3355fb2bc1.tar.gz
abslibre-0b49c28ca831dfca227718c3ff81fa3355fb2bc1.tar.bz2
abslibre-0b49c28ca831dfca227718c3ff81fa3355fb2bc1.zip
libreboot-utils: Add cbmem
The cbmem utility enables to retrieve the Coreboot and Libreboot boot logs. This requires Coreboot or Libreboot to be built with CONFIG_CONSOLE_CBMEM=y to work. In addition cbmem also supports retrieving additional boot information like timestamps (which requires CONFIG_COLLECT_TIMESTAMPS=y), and so on. GRUB also has a cbmem console, so if configured to use it we can also retrieve the GRUB boot log. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--pcr/libreboot-utils/PKGBUILD10
1 files changed, 9 insertions, 1 deletions
diff --git a/pcr/libreboot-utils/PKGBUILD b/pcr/libreboot-utils/PKGBUILD
index e3627126d..bdf9d5560 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=8
+pkgrel=9
_upstream_ver=20211122
pkgver=4.15.libreboot${_upstream_ver}
pkgdesc="Misc. Coreboot/Libreboot utils (bucts, cbfstool, ECtool, nvramtool, superiotool)"
@@ -35,6 +35,8 @@ prepare() {
sed 's#/sbin#/bin#' -i Makefile
cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/cbfstool/"
sed 's#/sbin#/bin#' -i Makefile
+ cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/cbmem/"
+ sed 's#/sbin#/bin#' -i Makefile
cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/ectool/"
sed 's#/sbin#/bin#' -i Makefile
cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/nvramtool/"
@@ -75,6 +77,9 @@ build() {
# Build cbfstool.
make -C cbfstool WERROR=''
+ # Build cbmem.
+ make -C cbmem
+
# Build nvramtool.
make -C nvramtool
@@ -124,6 +129,9 @@ package() {
# Install cbfstool.
make -C cbfstool install DESTDIR="${pkgdir}" PREFIX=/usr
+ # Install cbmem.
+ make -C cbmem install DESTDIR="${pkgdir}" PREFIX=/usr
+
# Install nvramtool.
make -C nvramtool install DESTDIR="${pkgdir}" PREFIX=/usr