* [Buildroot] [PATCH v2 1/1] boot/arm-trusted-firmware: override BL31 environment variable error
@ 2025-09-05 12:26 Neal Frager via buildroot
2025-09-10 8:11 ` Luca Ceresoli via buildroot
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Neal Frager via buildroot @ 2025-09-05 12:26 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>
---
V1->V2:
- correct file path in commit subject
---
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] 5+ messages in thread* Re: [Buildroot] [PATCH v2 1/1] boot/arm-trusted-firmware: override BL31 environment variable error
2025-09-05 12:26 [Buildroot] [PATCH v2 1/1] boot/arm-trusted-firmware: override BL31 environment variable error Neal Frager via buildroot
@ 2025-09-10 8:11 ` Luca Ceresoli via buildroot
2025-09-10 9:44 ` Frager, Neal via buildroot
2026-01-02 17:27 ` Thomas Petazzoni via buildroot
2026-01-13 19:45 ` Arnout Vandecappelle via buildroot
2 siblings, 1 reply; 5+ messages in thread
From: Luca Ceresoli via buildroot @ 2025-09-10 8:11 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
Hello Neal,
On Fri, 5 Sep 2025 13:26:03 +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>
Nice bug!
Tested-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
I'm not sure whether this is the correct solution or rather we should
unexport BL31 in the main Makefile (in the "Hide troublesome environment
variables from sub processes" section). However as far as I can say
this is OK, and definitely self-contained since it's likely that other
packages won't be affected by a BL31 host environment variable, so:
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
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] 5+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] boot/arm-trusted-firmware: override BL31 environment variable error
2025-09-10 8:11 ` Luca Ceresoli via buildroot
@ 2025-09-10 9:44 ` Frager, Neal via buildroot
0 siblings, 0 replies; 5+ messages in thread
From: Frager, Neal via buildroot @ 2025-09-10 9:44 UTC (permalink / raw)
To: Luca Ceresoli, thomas.petazzoni@bootlin.com, arnout@rnout.be,
peter@korsgaard.com
Cc: buildroot@buildroot.org, Simek, Michal, ju.o@free.fr,
brandon.maier@collins.com, romain.naour@smile.fr,
romain.naour@gmail.com, Erkiaga Elorza, Ibai,
yann.morin@orange.com
[AMD Official Use Only - AMD Internal Distribution Only]
Hello Luca,
> 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>
> Nice bug!
> Tested-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
> I'm not sure whether this is the correct solution or rather we should
> unexport BL31 in the main Makefile (in the "Hide troublesome environment
> variables from sub processes" section). However as far as I can say
> this is OK, and definitely self-contained since it's likely that other
> packages won't be affected by a BL31 host environment variable, so:
Either solution is ok with me.
Perhaps a maintainer can weigh in?
> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
> Luca
Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] boot/arm-trusted-firmware: override BL31 environment variable error
2025-09-05 12:26 [Buildroot] [PATCH v2 1/1] boot/arm-trusted-firmware: override BL31 environment variable error Neal Frager via buildroot
2025-09-10 8:11 ` Luca Ceresoli via buildroot
@ 2026-01-02 17:27 ` Thomas Petazzoni via buildroot
2026-01-13 19:45 ` Arnout Vandecappelle via buildroot
2 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-02 17:27 UTC (permalink / raw)
To: Neal Frager via buildroot
Cc: Neal Frager, ibai.erkiaga-elorza, luca.ceresoli, yann.morin,
brandon.maier, ju.o, romain.naour, michal.simek, romain.naour
On Fri, 5 Sep 2025 13:26:03 +0100
Neal Frager via buildroot <buildroot@buildroot.org> 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>
> ---
> V1->V2:
> - correct file path in commit subject
> ---
> boot/arm-trusted-firmware/arm-trusted-firmware.mk | 1 +
> 1 file changed, 1 insertion(+)
I am also not sure whether this was the best approach or not, but let's
say it's good enough for now. Applied to master, thanks!
Thomas
--
Thomas Petazzoni, CTO, 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] 5+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] boot/arm-trusted-firmware: override BL31 environment variable error
2025-09-05 12:26 [Buildroot] [PATCH v2 1/1] boot/arm-trusted-firmware: override BL31 environment variable error Neal Frager via buildroot
2025-09-10 8:11 ` Luca Ceresoli via buildroot
2026-01-02 17:27 ` Thomas Petazzoni via buildroot
@ 2026-01-13 19:45 ` Arnout Vandecappelle via buildroot
2 siblings, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2026-01-13 19:45 UTC (permalink / raw)
To: Neal Frager; +Cc: Arnout Vandecappelle, buildroot
In reply of:
> 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>
Applied to 2025.02.x and 2025.11.x. Thanks
> ---
> V1->V2:
> - correct file path in commit subject
> ---
> 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
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-01-13 19:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-05 12:26 [Buildroot] [PATCH v2 1/1] boot/arm-trusted-firmware: override BL31 environment variable error Neal Frager via buildroot
2025-09-10 8:11 ` Luca Ceresoli via buildroot
2025-09-10 9:44 ` Frager, Neal via buildroot
2026-01-02 17:27 ` Thomas Petazzoni via buildroot
2026-01-13 19:45 ` Arnout Vandecappelle via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox