* [Buildroot] [PATCH v1 1/1] boot/xilinx-prebuilt/Config.in: versal needs bootgen
@ 2024-06-28 12:24 Neal Frager via buildroot
2024-06-28 14:13 ` Luca Ceresoli via buildroot
0 siblings, 1 reply; 3+ messages in thread
From: Neal Frager via buildroot @ 2024-06-28 12:24 UTC (permalink / raw)
To: buildroot
Cc: andy.a.kennedy, ibai.erkiaga-elorza, luca.ceresoli, brandon.maier,
thomas.petazzoni, Neal Frager, michal.simek, yann.morin.1998
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
endchoice
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH v1 1/1] boot/xilinx-prebuilt/Config.in: versal needs bootgen
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
2024-06-28 15:47 ` Frager, Neal via buildroot
0 siblings, 1 reply; 3+ messages in thread
From: Luca Ceresoli via buildroot @ 2024-06-28 14:13 UTC (permalink / raw)
To: Neal Frager
Cc: andy.a.kennedy, ibai.erkiaga-elorza, brandon.maier,
thomas.petazzoni, buildroot, michal.simek, yann.morin.1998
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH v1 1/1] boot/xilinx-prebuilt/Config.in: versal needs bootgen
2024-06-28 14:13 ` Luca Ceresoli via buildroot
@ 2024-06-28 15:47 ` Frager, Neal via buildroot
0 siblings, 0 replies; 3+ messages in thread
From: Frager, Neal via buildroot @ 2024-06-28 15:47 UTC (permalink / raw)
To: Luca Ceresoli
Cc: andy.a.kennedy@collins.com, Erkiaga Elorza, Ibai,
brandon.maier@collins.com, thomas.petazzoni@bootlin.com,
buildroot@buildroot.org, Simek, Michal, yann.morin.1998@free.fr
Hi Luca,
> 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.
I see your point, and I do not have a strong opinion on this.
I am fine with leaving it out.
Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-28 15:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2024-06-28 15:47 ` Frager, Neal via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox