[Buildroot] [PATCH v2 1/1] boot/uboot/uboot.mk: fix zynqmp without pmufw
Luca Ceresoli
luca.ceresoli at bootlin.com
Tue Nov 22 21:28:21 UTC 2022
Hi Brandon,
On Tue, 22 Nov 2022 14:17:01 -0600
Brandon Maier <brandon.maier at collins.com> wrote:
> Commit d07e6b70 (boot/uboot/uboot.mk: add pmufw.elf support) broke
> configurations where the UBOOT_ZYNQMP_PMUFW was blank. Previously it
> would set the U-Boot CONFIG_PMUFW_INIT_FILE to the blank string, but now
> it will set it to ".bin" which causes U-Boot to fail to build.
>
> Signed-off-by: Brandon Maier <brandon.maier at collins.com>
> ---
> v2:
> - support pmufw with any extension
> ---
> boot/uboot/uboot.mk | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
> index 19e4183927..d037ae9c12 100644
> --- a/boot/uboot/uboot.mk
> +++ b/boot/uboot/uboot.mk
> @@ -394,8 +394,9 @@ UBOOT_ZYNQMP_PMUFW_BASENAME = $(basename $(UBOOT_ZYNQMP_PMUFW_PATH))
>
> define UBOOT_ZYNQMP_KCONFIG_PMUFW
> $(if $(filter %.elf,$(UBOOT_ZYNQMP_PMUFW_PATH)),
> - objcopy -O binary -I elf32-little $(UBOOT_ZYNQMP_PMUFW_BASENAME).elf $(UBOOT_ZYNQMP_PMUFW_BASENAME).bin)
> - $(call KCONFIG_SET_OPT,CONFIG_PMUFW_INIT_FILE,"$(UBOOT_ZYNQMP_PMUFW_BASENAME).bin")
> + objcopy -O binary -I elf32-little $(UBOOT_ZYNQMP_PMUFW_BASENAME).elf $(UBOOT_ZYNQMP_PMUFW_BASENAME).bin
> + $(call KCONFIG_SET_OPT,CONFIG_PMUFW_INIT_FILE,"$(UBOOT_ZYNQMP_PMUFW_BASENAME).bin"),
> + $(call KCONFIG_SET_OPT,CONFIG_PMUFW_INIT_FILE,"$(UBOOT_ZYNQMP_PMUFW_PATH)"))
> endef
Using the else branche of $(if) is different from what I had in
mind, but it is fine as well.
Reviewed-by: Luca Ceresoli <luca.ceresoli at bootlin.com>
Thanks!
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list