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 2/2] efibootmgr: new package
Date: Tue, 11 Sep 2018 10:35:00 +0200	[thread overview]
Message-ID: <20180911083500.31107-2-artur@4wiebe.de> (raw)
In-Reply-To: <20180911083500.31107-1-artur@4wiebe.de>

Signed-off-by: Artur Wiebe <artur@4wiebe.de>
---
 rules/efibootmgr.in   |  12 +++++
 rules/efibootmgr.make | 103 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 115 insertions(+)
 create mode 100644 rules/efibootmgr.in
 create mode 100644 rules/efibootmgr.make

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..86df9ab16
--- /dev/null
+++ b/rules/efibootmgr.make
@@ -0,0 +1,103 @@
+# -*-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
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+#$(EFIBOOTMGR_SOURCE):
+#	@$(call targetinfo)
+#	@$(call get, EFIBOOTMGR)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+EFIBOOTMGR_MAKE_ENV	:= $(CROSS_ENV)
+EFIBOOTMGR_MAKE_OPT	:= EFIDIR="/boot/EFI"
+EFIBOOTMGR_INSTALL_OPT	:= EFIDIR="/boot/EFI" install
+
+#
+# autoconf
+#
+EFIBOOTMGR_CONF_TOOL	:= NO
+#EFIBOOTMGR_CONF_OPT	:= $(CROSS_AUTOCONF_USR)
+
+#$(STATEDIR)/efibootmgr.prepare:
+#	@$(call targetinfo)
+#	@$(call clean, $(EFIBOOTMGR_DIR)/config.cache)
+#	cd $(EFIBOOTMGR_DIR) && \
+#		$(EFIBOOTMGR_PATH) $(EFIBOOTMGR_ENV) \
+#		./configure $(EFIBOOTMGR_CONF_OPT)
+#	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/efibootmgr.compile:
+#	@$(call targetinfo)
+#	@$(call world/compile, EFIBOOTMGR)
+#	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/efibootmgr.install:
+#	@$(call targetinfo)
+#	@$(call world/install, EFIBOOTMGR)
+#	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# 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)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/efibootmgr.clean:
+#	@$(call targetinfo)
+#	@$(call clean_pkg, EFIBOOTMGR)
+
+# 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 [ptxdist] [PATCH 1/2] efivar: " Artur Wiebe
2018-09-11  8:35 ` Artur Wiebe [this message]
2018-09-17  8:45   ` [ptxdist] [PATCH 2/2] efibootmgr: " Michael Olbrich
2018-09-17  8:44 ` [ptxdist] [PATCH 1/2] efivar: " Michael Olbrich
2018-09-21 10:03 Artur Wiebe
2018-09-21 10:03 ` [ptxdist] [PATCH 2/2] efibootmgr: " 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-2-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