[Buildroot] [PATCH v2 2/3] boot/uboot: copy ATF bl31 binary to uboot package dir
Arnout Vandecappelle
arnout at mind.be
Sat Sep 11 20:56:30 UTC 2021
On 10/09/2021 16:09, Heiko Thiery wrote:
> If the U-Boot image is to be built with binman and the ATF binary is
> used, the file is expected in the toplevel directory.
>
> Signed-off-by: Heiko Thiery <heiko.thiery at gmail.com>
Applied to master, thanks. I've updated the commit message to reflect that it's
not related to binman.
Regards,
Arnout
> ---
> boot/uboot/uboot.mk | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
> index 4f3c9b7c3a..1a840d9cc1 100644
> --- a/boot/uboot/uboot.mk
> +++ b/boot/uboot/uboot.mk
> @@ -162,8 +162,16 @@ ifeq ($(BR2_TARGET_UBOOT_NEEDS_ATF_BL31),y)
> UBOOT_DEPENDENCIES += arm-trusted-firmware
> ifeq ($(BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF),y)
> UBOOT_MAKE_OPTS += BL31=$(BINARIES_DIR)/bl31.elf
> +define UBOOT_COPY_ATF_FIRMWARE
> + cp $(BINARIES_DIR)/bl31.elf $(@D)/
> +endef
> +UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_ATF_FIRMWARE
> else
> UBOOT_MAKE_OPTS += BL31=$(BINARIES_DIR)/bl31.bin
> +define UBOOT_COPY_ATF_FIRMWARE
> + cp $(BINARIES_DIR)/bl31.bin $(@D)/
> +endef
> +UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_ATF_FIRMWARE
> endif
> endif
>
>
More information about the buildroot
mailing list