aboutsummaryrefslogtreecommitdiff
path: root/extra/efibootmgr/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/efibootmgr/build')
-rwxr-xr-xextra/efibootmgr/build10
1 files changed, 10 insertions, 0 deletions
diff --git a/extra/efibootmgr/build b/extra/efibootmgr/build
new file mode 100755
index 00000000..e15840ed
--- /dev/null
+++ b/extra/efibootmgr/build
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+patch -p1 < efivar.patch
+
+make \
+ EXTRA_CFLAGS=-Os \
+ EFIDIR=/boot/EFI
+
+install -Dm0755 src/efibootmgr "$1/usr/bin/efibootmgr"
+install -Dm0644 src/efibootmgr.8 "$1/usr/share/man/man8/efibootmgr.8"