From f7a4fc9115b6f9ad483bab249e40eee28e0263a0 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Thu, 5 May 2022 23:10:22 +0200 Subject: pcr: libreboot-utils: don't build bucts for armv7h Signed-off-by: Denis 'GNUtoo' Carikli --- pcr/libreboot-utils/PKGBUILD | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'pcr') diff --git a/pcr/libreboot-utils/PKGBUILD b/pcr/libreboot-utils/PKGBUILD index 9e67d25e6..d18125a1d 100644 --- a/pcr/libreboot-utils/PKGBUILD +++ b/pcr/libreboot-utils/PKGBUILD @@ -4,7 +4,7 @@ # Maintainers: Parabola hackers pkgname=libreboot-utils -pkgrel=1 +pkgrel=2 _upstream_ver=20211122 pkgver=4.15.libreboot${_upstream_ver} pkgdesc="Misc. Coreboot/Libreboot utils (bucts, cbfstool, ECtool, nvramtool, superiotool)" @@ -46,8 +46,21 @@ build() { # Get to the directory. cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/" - # Build bucts. - make -C bucts + # Bucts uses port-mapped I/O which doesn't exist on armv7h, so + # it fails to compile when including sys/io.h. And it's only + # useful for x86 computers anyway as it's supposed to run on + # computers with an I945 chipset. + # + # Note that it could also be dangerous to use for people that + # are not installing Libreboot or that don't know what they + # are doing. In case it happens, removing the CMOS battery and + # all other power sources should reset the BUC.TS register to + # its default value and enable the computer to boot again. + if [ "${CARCH}" = "i686" -o "${CARCH}" = "x86_64" ] ; then + # Build bucts. + make -C bucts + fi + # Build cbfstool. case "${CARCH}" in armv7h) make -C cbfstool;; -- cgit v1.2.3