mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] rauc: select on-target tools depending on bootloader
@ 2019-05-31 17:01 Andreas Pretzsch
  2019-05-31 17:18 ` Andreas Pretzsch
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andreas Pretzsch @ 2019-05-31 17:01 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-07-01 16:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-31 17:01 [ptxdist] [PATCH] rauc: select on-target tools depending on bootloader Andreas Pretzsch
2019-05-31 17:18 ` Andreas Pretzsch
2019-05-31 18:10 ` Michael Olbrich
2019-07-01 16:57 ` [ptxdist] [PATCH v2] " Andreas Pretzsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox