summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorArtur Wiebe <artur@4wiebe.de>2018-09-21 12:03:03 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-09-27 10:28:56 +0200
commita7aea271647c71d509a4695060f220448a7fb65f (patch)
tree84c75957f7b290d5d2bef92c341bc2aafe996b83 /rules
parentf53889792197d93ca2f9bb7edc0d8e778c0ba9e2 (diff)
downloadptxdist-a7aea271647c71d509a4695060f220448a7fb65f.tar.gz
ptxdist-a7aea271647c71d509a4695060f220448a7fb65f.tar.xz
efivar: 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/efivar.in8
-rw-r--r--rules/efivar.make59
2 files changed, 67 insertions, 0 deletions
diff --git a/rules/efivar.in b/rules/efivar.in
new file mode 100644
index 000000000..508e412aa
--- /dev/null
+++ b/rules/efivar.in
@@ -0,0 +1,8 @@
+## SECTION=shell_and_console
+
+config EFIVAR
+ tristate
+ select LIBC_DL
+ prompt "efivar"
+ help
+ Tools and libraries to manipulate EFI variables
diff --git a/rules/efivar.make b/rules/efivar.make
new file mode 100644
index 000000000..105d5a902
--- /dev/null
+++ b/rules/efivar.make
@@ -0,0 +1,59 @@
+# -*-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_EFIVAR) += efivar
+
+#
+# Paths and names
+#
+EFIVAR_VERSION := 36
+EFIVAR_MD5 := e98140ab7105e90059dc57a67c8c07e9
+EFIVAR := efivar-$(EFIVAR_VERSION)
+EFIVAR_SUFFIX := tar.bz2
+EFIVAR_URL := https://github.com/rhboot/efivar/releases/download/$(EFIVAR_VERSION)/$(EFIVAR).$(EFIVAR_SUFFIX)
+EFIVAR_SOURCE := $(SRCDIR)/$(EFIVAR).$(EFIVAR_SUFFIX)
+EFIVAR_DIR := $(BUILDDIR)/$(EFIVAR)
+EFIVAR_LICENSE := LGPL-2.1-only
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+EFIVAR_CONF_TOOL := NO
+EFIVAR_MAKE_ENV := $(CROSS_ENV)
+EFIVAR_INSTALL_OPT := libdir="/usr/lib/" install
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/efivar.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, efivar)
+ @$(call install_fixup, efivar,PRIORITY,optional)
+ @$(call install_fixup, efivar,SECTION,base)
+ @$(call install_fixup, efivar,AUTHOR,"Artur Wiebe <artur@4wiebe.de>")
+ @$(call install_fixup, efivar,DESCRIPTION,missing)
+
+ @$(call install_lib, efivar, 0, 0, 0644, libefivar)
+ @$(call install_lib, efivar, 0, 0, 0644, libefiboot)
+
+ @$(call install_copy, efivar, 0, 0, 0755, -, /usr/bin/efivar)
+
+ @$(call install_finish, efivar)
+
+ @$(call touch)
+
+
+# vim: syntax=make