aboutsummaryrefslogtreecommitdiff
path: root/extra/efivar/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/efivar/build')
-rwxr-xr-xextra/efivar/build17
1 files changed, 17 insertions, 0 deletions
diff --git a/extra/efivar/build b/extra/efivar/build
new file mode 100755
index 00000000..eb4038ac
--- /dev/null
+++ b/extra/efivar/build
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+patch -p1 < fix-gcc9-dp.h.patch
+patch -p1 < fix-gcc9.patch
+
+# Avoid repeating ourselves.
+mk() {
+ make \
+ libdir=/usr/lib/ \
+ bindir=/usr/bin/ \
+ mandir=/usr/share/man/ \
+ includedir=/usr/include/ \
+ "$@"
+}
+
+mk
+mk DESTDIR="$1" install