mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Artur Wiebe <artur@4wiebe.de>
To: ptxdist@pengutronix.de
Cc: Artur Wiebe <artur@4wiebe.de>
Subject: [ptxdist] [PATCH 1/2] efivar: new package
Date: Tue, 11 Sep 2018 10:34:59 +0200	[thread overview]
Message-ID: <20180911083500.31107-1-artur@4wiebe.de> (raw)

Signed-off-by: Artur Wiebe <artur@4wiebe.de>
---
 rules/efivar.in   |   8 ++++
 rules/efivar.make | 105 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 113 insertions(+)
 create mode 100644 rules/efivar.in
 create mode 100644 rules/efivar.make

diff --git a/rules/efivar.in b/rules/efivar.in
new file mode 100644
index 000000000..86f944107
--- /dev/null
+++ b/rules/efivar.in
@@ -0,0 +1,8 @@
+## SECTION=shell_and_console
+
+config EFIVAR
+	tristate
+	select GLIBC_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..6aae4807e
--- /dev/null
+++ b/rules/efivar.make
@@ -0,0 +1,105 @@
+# -*-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
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+#$(EFIVAR_SOURCE):
+#	@$(call targetinfo)
+#	@$(call get, EFIVAR)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+EFIVAR_MAKE_ENV		:= $(CROSS_ENV)
+EFIVAR_INSTALL_OPT	:= libdir="/usr/lib/" install
+
+#
+# autoconf
+#
+EFIVAR_CONF_TOOL	:= NO
+#EFIVAR_CONF_OPT	:= $(CROSS_AUTOCONF_USR)
+
+#$(STATEDIR)/efivar.prepare:
+#	@$(call targetinfo)
+#	@$(call clean, $(EFIVAR_DIR)/config.cache)
+#	cd $(EFIVAR_DIR) && \
+#		$(EFIVAR_PATH) $(EFIVAR_ENV) \
+#		./configure $(EFIVAR_CONF_OPT)
+#	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/efivar.compile:
+#	@$(call targetinfo)
+#	@$(call world/compile, EFIVAR)
+#	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/efivar.install:
+#	@$(call targetinfo)
+#	@$(call world/install, EFIVAR)
+#	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# 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)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/efivar.clean:
+#	@$(call targetinfo)
+#	@$(call clean_pkg, EFIVAR)
+
+# vim: syntax=make
-- 
2.18.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2018-09-11  8:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-11  8:34 Artur Wiebe [this message]
2018-09-11  8:35 ` [ptxdist] [PATCH 2/2] efibootmgr: " Artur Wiebe
2018-09-17  8:45   ` Michael Olbrich
2018-09-17  8:44 ` [ptxdist] [PATCH 1/2] efivar: " Michael Olbrich
2018-09-21 10:03 Artur Wiebe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180911083500.31107-1-artur@4wiebe.de \
    --to=artur@4wiebe.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox