aboutsummaryrefslogtreecommitdiff
path: root/system/chipsec
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2018-02-27 22:41:13 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-03-03 08:42:07 +0700
commitb2b0ab9010bfe7775669f80afb9c27930dfc18ac (patch)
tree1dc3802c1f3b63165b37adf09a42d7f9214bc2a8 /system/chipsec
parent5ea002829819cc43b52fec6d0ee448d36829df11 (diff)
system/chipsec: Fix build on 32 bit.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/chipsec')
-rw-r--r--system/chipsec/chipsec.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/chipsec/chipsec.SlackBuild b/system/chipsec/chipsec.SlackBuild
index 2e1ed5ece99a4..e12f608ff2c65 100644
--- a/system/chipsec/chipsec.SlackBuild
+++ b/system/chipsec/chipsec.SlackBuild
@@ -54,6 +54,10 @@ else
LIBDIRSUFFIX=""
fi
+# Don't have ARCH in the environment when building a kernel module
+SLKARCH=$ARCH
+unset -v ARCH
+
set -e
rm -rf $PKG
@@ -104,4 +108,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$SLKARCH-$BUILD$TAG.${PKGTYPE:-tgz}