summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorArtur Wiebe <artur@4wiebe.de>2018-09-21 12:03:04 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-09-27 10:28:57 +0200
commit85f7ddea60308f2b30cc86172783024bb43e0475 (patch)
treeb8e43db20d1f12a253c8b56555f05e27997bb9d1 /rules
parent53870e80489e5c9cf8688e0289176b87acec1976 (diff)
downloadptxdist-85f7ddea60308f2b30cc86172783024bb43e0475.tar.gz
ptxdist-85f7ddea60308f2b30cc86172783024bb43e0475.tar.xz
efibootmgr: new package
Signed-off-by: Artur Wiebe <artur@4wiebe.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r--rules/efibootmgr.in12
-rw-r--r--rules/efibootmgr.make57
2 files changed, 69 insertions, 0 deletions
diff --git a/rules/efibootmgr.in b/rules/efibootmgr.in
new file mode 100644
index 000000000..c48787120
--- /dev/null
+++ b/rules/efibootmgr.in
@@ -0,0 +1,12 @@
+## SECTION=shell_and_console
+
+config EFIBOOTMGR
+ tristate
+ select LIBPOPT
+ select EFIVAR
+ prompt "efibootmgr"
+ help
+ This is efibootmgr, a Linux user-space application to modify the
+ Intel Extensible Firmware Interface (EFI) Boot Manager.
+ This application can create and destroy boot entries,
+ change the boot order, change the next running boot option, and more.
diff --git a/rules/efibootmgr.make b/rules/efibootmgr.make
new file mode 100644
index 000000000..ca9b4b895
--- /dev/null
+++ b/rules/efibootmgr.make
@@ -0,0 +1,57 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Artur Wiebe <artur@4wiebe.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_EFIBOOTMGR) += efibootmgr
+
+#
+# Paths and names
+#
+EFIBOOTMGR_VERSION := 16
+EFIBOOTMGR_MD5 := ab7cf46774fda951a0e8a40beb65a90e
+EFIBOOTMGR := efibootmgr-$(EFIBOOTMGR_VERSION)
+EFIBOOTMGR_SUFFIX := tar.bz2
+EFIBOOTMGR_URL := https://github.com/rhboot/efibootmgr/releases/download/$(EFIBOOTMGR_VERSION)/$(EFIBOOTMGR).$(EFIBOOTMGR_SUFFIX)
+EFIBOOTMGR_SOURCE := $(SRCDIR)/$(EFIBOOTMGR).$(EFIBOOTMGR_SUFFIX)
+EFIBOOTMGR_DIR := $(BUILDDIR)/$(EFIBOOTMGR)
+EFIBOOTMGR_LICENSE := GPL-2.0-only
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+EFIBOOTMGR_CONF_TOOL := NO
+EFIBOOTMGR_MAKE_ENV := $(CROSS_ENV)
+EFIBOOTMGR_MAKE_OPT := EFIDIR="/boot/EFI"
+EFIBOOTMGR_INSTALL_OPT := EFIDIR="/boot/EFI" install
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/efibootmgr.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, efibootmgr)
+ @$(call install_fixup, efibootmgr,PRIORITY,optional)
+ @$(call install_fixup, efibootmgr,SECTION,base)
+ @$(call install_fixup, efibootmgr,AUTHOR,"Artur Wiebe <artur@4wiebe.de>")
+ @$(call install_fixup, efibootmgr,DESCRIPTION,missing)
+
+ @$(call install_copy, efibootmgr, 0, 0, 0755, -, /usr/sbin/efibootmgr)
+
+ @$(call install_finish, efibootmgr)
+
+ @$(call touch)
+
+
+# vim: syntax=make