mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Andreas Pretzsch <apr@cn-eng.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] rauc: select on-target tools depending on bootloader
Date: Fri, 31 May 2019 19:01:58 +0200	[thread overview]
Message-ID: <1559322118-9072-1-git-send-email-apr@cn-eng.de> (raw)

RAUC relies on tools on the target to interact with the bootloader.
As the bootloader selection is not part of ptxconfig, but platformconfig,
have the user select the bootloader used on the target.
Based on this choice, auto-select the appropriate packages:
  barebox: dt-utils (barebox-state)
  U-Boot: u-boot-tools (fw_printenv, fw_setenv)
  GRUB: none (grub-editenv already part of GRUB package)
  EFI: efibootmgr (efibootmgr)

Signed-off-by: Andreas Pretzsch <apr@cn-eng.de>
---
 rules/rauc.in | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/rules/rauc.in b/rules/rauc.in
index 213a1211e..62977a0cb 100644
--- a/rules/rauc.in
+++ b/rules/rauc.in
@@ -7,6 +7,9 @@ menuconfig RAUC
 	select GLIB
 	select GLIB_LIBMOUNT
 	select HOST_GLIB
+	select DT_UTILS		if RAUC_BAREBOX
+	select U_BOOT_TOOLS	if RAUC_U_BOOT
+	select EFIBOOTMGR	if RAUC_EFI
 	select BUSYBOX_FEATURE_TAR_LONG_OPTIONS	if BUSYBOX_TAR
 	select BUSYBOX_FEATURE_TAR_AUTODETECT 	if BUSYBOX_TAR
 	select BUSYBOX_FEATURE_SEAMLESS_XZ 		if BUSYBOX_TAR
@@ -19,6 +22,18 @@ menuconfig RAUC
 
 if RAUC
 
+choice
+	prompt "Bootloader used on target"
+	config RAUC_BAREBOX
+		bool "barebox"
+	config RAUC_U_BOOT
+		bool "U-Boot "
+	config RAUC_GRUB
+		bool "GRUB   "
+	config RAUC_EFI
+		bool "EFI    "
+endchoice
+
 config RAUC_SERVICE
 	bool
 	prompt "Enable service (D-Bus) support"
-- 
2.19.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2019-05-31 17:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-31 17:01 Andreas Pretzsch [this message]
2019-05-31 17:18 ` Andreas Pretzsch
2019-05-31 18:10 ` Michael Olbrich
2019-07-01 16:57 ` [ptxdist] [PATCH v2] " Andreas Pretzsch

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=1559322118-9072-1-git-send-email-apr@cn-eng.de \
    --to=apr@cn-eng.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