Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Thiery <heiko.thiery@gmail.com>
To: buildroot@buildroot.org
Cc: Gary Bisson <bisson.gary@gmail.com>,
	Stephane Viau <stephane.viau@oss.nxp.com>,
	Refik Tuzakli <tuzakli.refik@gmail.com>,
	Michael Walle <michael@walle.cc>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Heiko Thiery <heiko.thiery@gmail.com>,
	Fabio Estevam <festevam@gmail.com>,
	Xavier Roumegue <xroumegue@gmail.com>
Subject: [Buildroot] [PATCH v2 2/3] boot/uboot: copy ATF bl31 binary to uboot package dir
Date: Fri, 10 Sep 2021 16:09:27 +0200	[thread overview]
Message-ID: <20210910140925.28138-3-heiko.thiery@gmail.com> (raw)
In-Reply-To: <20210910140925.28138-1-heiko.thiery@gmail.com>

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@gmail.com>
---
 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
 
-- 
2.30.0

_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  parent reply	other threads:[~2021-09-10 14:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-10 14:09 [Buildroot] [PATCH v2 0/3] Add support to build imx8 images using mainline uboot Heiko Thiery
2021-09-10 14:09 ` [Buildroot] [PATCH v2 1/3] package/freescale-imx/firmware-imx: copy all (lp)ddr files unconditionaly Heiko Thiery
2021-09-10 14:26   ` Fabio Estevam
2021-09-11 20:56   ` Arnout Vandecappelle
2021-09-10 14:09 ` Heiko Thiery [this message]
2021-09-10 14:27   ` [Buildroot] [PATCH v2 2/3] boot/uboot: copy ATF bl31 binary to uboot package dir Fabio Estevam
2021-09-10 16:03     ` Heiko Thiery
2021-09-10 16:08       ` Fabio Estevam
2021-09-10 18:09         ` Heiko Thiery
2021-09-11 20:56   ` Arnout Vandecappelle
2021-09-10 14:09 ` [Buildroot] [PATCH v2 3/3] boot/uboot: copy IMX firmware files " Heiko Thiery
2021-09-10 14:32   ` Fabio Estevam
2021-09-11 20:57   ` Arnout Vandecappelle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210910140925.28138-3-heiko.thiery@gmail.com \
    --to=heiko.thiery@gmail.com \
    --cc=bisson.gary@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=festevam@gmail.com \
    --cc=michael@walle.cc \
    --cc=stephane.viau@oss.nxp.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=tuzakli.refik@gmail.com \
    --cc=xroumegue@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox