From: Luca Ceresoli via buildroot <buildroot@buildroot.org>
To: Neal Frager <neal.frager@amd.com>
Cc: andy.a.kennedy@collins.com, ibai.erkiaga-elorza@amd.com,
brandon.maier@collins.com, thomas.petazzoni@bootlin.com,
buildroot@buildroot.org, michal.simek@amd.com,
yann.morin.1998@free.fr
Subject: Re: [Buildroot] [PATCH v1 1/1] boot/xilinx-prebuilt/Config.in: versal needs bootgen
Date: Fri, 28 Jun 2024 16:13:49 +0200 [thread overview]
Message-ID: <20240628161349.4dd003a1@booty> (raw)
In-Reply-To: <20240628122436.1630911-1-neal.frager@amd.com>
Hi Neal,
On Fri, 28 Jun 2024 13:24:36 +0100
Neal Frager <neal.frager@amd.com> wrote:
> When building for versal targets, bootgen is required for packaging the
> boot.bin. This patch adds the dependency.
>
> Signed-off-by: Neal Frager <neal.frager@amd.com>
> ---
> boot/xilinx-prebuilt/Config.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/boot/xilinx-prebuilt/Config.in b/boot/xilinx-prebuilt/Config.in
> index d3df1c06e7..a1c2075d7c 100644
> --- a/boot/xilinx-prebuilt/Config.in
> +++ b/boot/xilinx-prebuilt/Config.in
> @@ -28,6 +28,7 @@ config BR2_TARGET_XILINX_PREBUILT_KRIA
>
> config BR2_TARGET_XILINX_PREBUILT_VERSAL
> bool "versal"
> + depends on BR2_PACKAGE_HOST_BOOTGEN
Looking at this better, I'm not sure it's the right thing to do.
xilinx-prebuilt can "build" perfectly without bootgen.
This is similar to genimage, which is not needed to build any Buildroot
package, but is used by several defconfigs to generate a bootable SD
card image afterwards. Thus each of these defconfigs also sets
BR2_PACKAGE_HOST_GENIMAGE=y.
Sure bootgen differs in that (as far as I understand) the *typical*
usage of xilinx-prebuilt requires host-bootgen in a post-build script.
However in principle another tool could be used in its place.
So as I said I'm not sure. Adding the 'depends on', possibly with a
line of comment to clarify this, could still be seen as a convenience,
but it would break existing defconfigs if the 'depends on' were removed
later on to accommodate other use cases that do not involve bootgen.
If there are no stronger opinions I'd vote to not add this.
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-06-28 14:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-28 12:24 [Buildroot] [PATCH v1 1/1] boot/xilinx-prebuilt/Config.in: versal needs bootgen Neal Frager via buildroot
2024-06-28 14:13 ` Luca Ceresoli via buildroot [this message]
2024-06-28 15:47 ` Frager, Neal via buildroot
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=20240628161349.4dd003a1@booty \
--to=buildroot@buildroot.org \
--cc=andy.a.kennedy@collins.com \
--cc=brandon.maier@collins.com \
--cc=ibai.erkiaga-elorza@amd.com \
--cc=luca.ceresoli@bootlin.com \
--cc=michal.simek@amd.com \
--cc=neal.frager@amd.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=yann.morin.1998@free.fr \
/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