summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-05-05 23:10:22 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-05-05 23:10:57 +0200
commitf7a4fc9115b6f9ad483bab249e40eee28e0263a0 (patch)
tree17fc36b300eb44425fd76890a426dba3b2d120c8 /pcr
parent42021ed7172a082412ecae09859c5057239d5440 (diff)
downloadabslibre-f7a4fc9115b6f9ad483bab249e40eee28e0263a0.tar.gz
abslibre-f7a4fc9115b6f9ad483bab249e40eee28e0263a0.tar.bz2
abslibre-f7a4fc9115b6f9ad483bab249e40eee28e0263a0.zip
pcr: libreboot-utils: don't build bucts for armv7h
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr')
-rw-r--r--pcr/libreboot-utils/PKGBUILD19
1 files changed, 16 insertions, 3 deletions
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 <dev@lists.parabola.nu>
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;;