From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] rauc: select on-target tools depending on bootloader
Date: Fri, 31 May 2019 20:10:26 +0200 [thread overview]
Message-ID: <20190531181026.tjau353fusfsqbcy@pengutronix.de> (raw)
In-Reply-To: <1559322118-9072-1-git-send-email-apr@cn-eng.de>
On Fri, May 31, 2019 at 07:01:58PM +0200, Andreas Pretzsch wrote:
> 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
These are runtime dependencies, so:
select xxx if RAUC_xxxx && RUNTIME
Michael
> 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
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2019-05-31 18:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-31 17:01 Andreas Pretzsch
2019-05-31 17:18 ` Andreas Pretzsch
2019-05-31 18:10 ` Michael Olbrich [this message]
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=20190531181026.tjau353fusfsqbcy@pengutronix.de \
--to=m.olbrich@pengutronix.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