* [Buildroot] [PATCH v1 1/1] board/arm-trusted-firmware: override BL31 environment variable error
@ 2025-09-05 12:20 Neal Frager via buildroot
2025-09-10 7:50 ` Luca Ceresoli via buildroot
0 siblings, 1 reply; 3+ messages in thread
From: Neal Frager via buildroot @ 2025-09-05 12:20 UTC (permalink / raw)
To: buildroot
Cc: ibai.erkiaga-elorza, luca.ceresoli, yann.morin, brandon.maier,
ju.o, Neal Frager, thomas.petazzoni, romain.naour, michal.simek,
romain.naour
When building the arm-trusted-firmware, if the host environment has a value
configured in the BL31 variable such as the following:
export BL31=/tmp/bl31.elf
This will cause the build of the bl31.elf to be skipped leading to the
following build error:
make[1]: Nothing to be done for 'bl31'.
And then:
readelf: Error: './output/build/arm-trusted-firmware-custom/build/versal/release/bl31/bl31.elf': No such file
To fix this, clear the BL31 variable in the MAKE_OPTS, so that building the
arm-trusted-firmware will build regardless of the host environment.
Signed-off-by: Neal Frager <neal.frager@amd.com>
---
boot/arm-trusted-firmware/arm-trusted-firmware.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/boot/arm-trusted-firmware/arm-trusted-firmware.mk b/boot/arm-trusted-firmware/arm-trusted-firmware.mk
index dca16d3960..021ab5c092 100644
--- a/boot/arm-trusted-firmware/arm-trusted-firmware.mk
+++ b/boot/arm-trusted-firmware/arm-trusted-firmware.mk
@@ -162,6 +162,7 @@ endif
ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31),y)
ARM_TRUSTED_FIRMWARE_MAKE_TARGETS += bl31
+ARM_TRUSTED_FIRMWARE_MAKE_OPTS += BL31=
endif
ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31_UBOOT),y)
--
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] board/arm-trusted-firmware: override BL31 environment variable error
2025-09-05 12:20 [Buildroot] [PATCH v1 1/1] board/arm-trusted-firmware: override BL31 environment variable error Neal Frager via buildroot
@ 2025-09-10 7:50 ` Luca Ceresoli via buildroot
2025-09-10 7:56 ` Luca Ceresoli via buildroot
0 siblings, 1 reply; 3+ messages in thread
From: Luca Ceresoli via buildroot @ 2025-09-10 7:50 UTC (permalink / raw)
To: Neal Frager
Cc: yann.morin, ibai.erkiaga-elorza, buildroot, brandon.maier, ju.o,
thomas.petazzoni, romain.naour, michal.simek, romain.naour
On Fri, 5 Sep 2025 13:20:57 +0100
Neal Frager <neal.frager@amd.com> wrote:
> When building the arm-trusted-firmware, if the host environment has a value
> configured in the BL31 variable such as the following:
>
> export BL31=/tmp/bl31.elf
>
> This will cause the build of the bl31.elf to be skipped leading to the
> following build error:
>
> make[1]: Nothing to be done for 'bl31'.
> And then:
> readelf: Error: './output/build/arm-trusted-firmware-custom/build/versal/release/bl31/bl31.elf': No such file
>
> To fix this, clear the BL31 variable in the MAKE_OPTS, so that building the
> arm-trusted-firmware will build regardless of the host environment.
>
> Signed-off-by: Neal Frager <neal.frager@amd.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
--
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] board/arm-trusted-firmware: override BL31 environment variable error
2025-09-10 7:50 ` Luca Ceresoli via buildroot
@ 2025-09-10 7:56 ` Luca Ceresoli via buildroot
0 siblings, 0 replies; 3+ messages in thread
From: Luca Ceresoli via buildroot @ 2025-09-10 7:56 UTC (permalink / raw)
To: Luca Ceresoli via buildroot
Cc: Luca Ceresoli, Neal Frager, yann.morin, ibai.erkiaga-elorza,
brandon.maier, ju.o, thomas.petazzoni, romain.naour, michal.simek,
romain.naour
On Wed, 10 Sep 2025 09:50:57 +0200
Luca Ceresoli via buildroot <buildroot@buildroot.org> wrote:
> On Fri, 5 Sep 2025 13:20:57 +0100
> Neal Frager <neal.frager@amd.com> wrote:
>
> > When building the arm-trusted-firmware, if the host environment has a value
> > configured in the BL31 variable such as the following:
> >
> > export BL31=/tmp/bl31.elf
> >
> > This will cause the build of the bl31.elf to be skipped leading to the
> > following build error:
> >
> > make[1]: Nothing to be done for 'bl31'.
> > And then:
> > readelf: Error: './output/build/arm-trusted-firmware-custom/build/versal/release/bl31/bl31.elf': No such file
> >
> > To fix this, clear the BL31 variable in the MAKE_OPTS, so that building the
> > arm-trusted-firmware will build regardless of the host environment.
> >
> > Signed-off-by: Neal Frager <neal.frager@amd.com>
>
> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
>
Dang. Messed up with my mailer. Please ignore this R-by!
Apologies,
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
end of thread, other threads:[~2025-09-10 7:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-05 12:20 [Buildroot] [PATCH v1 1/1] board/arm-trusted-firmware: override BL31 environment variable error Neal Frager via buildroot
2025-09-10 7:50 ` Luca Ceresoli via buildroot
2025-09-10 7:56 ` Luca Ceresoli via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.