All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jagan Teki <jagannadh.teki@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v5 02/11] uboot: Add U-Boot-bundles-ATF support
Date: Wed,  1 Nov 2017 19:05:44 +0100	[thread overview]
Message-ID: <1509559553-26544-3-git-send-email-jagan@amarulasolutions.com> (raw)
In-Reply-To: <1509559553-26544-1-git-send-email-jagan@amarulasolutions.com>

For building U-Boot proper in Allwinner A64/H5, ATF need
to build first and ATF binary need to be exported.

U-Boot-bundles-ATF support export ATF binary and disable
U-Boot dependency in ATF becuase except U-Boot dependent
boards(like juno) ideally ATF will build prior to U-Boot.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 boot/arm-trusted-firmware/arm-trusted-firmware.mk |  2 ++
 boot/uboot/Config.in                              | 10 ++++++++++
 boot/uboot/uboot.mk                               |  5 +++++
 3 files changed, 17 insertions(+)

diff --git a/boot/arm-trusted-firmware/arm-trusted-firmware.mk b/boot/arm-trusted-firmware/arm-trusted-firmware.mk
index 5b4e3b0..c0af8e8 100644
--- a/boot/arm-trusted-firmware/arm-trusted-firmware.mk
+++ b/boot/arm-trusted-firmware/arm-trusted-firmware.mk
@@ -8,7 +8,9 @@ ARM_TRUSTED_FIRMWARE_VERSION = $(call qstrip,$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_V
 ARM_TRUSTED_FIRMWARE_LICENSE = BSD-3-Clause
 ARM_TRUSTED_FIRMWARE_LICENSE_FILES = license.rst
 
+ifeq ($(BR2_TARGET_UBOOT_NEEDS_ATF),)
 ARM_TRUSTED_FIRMWARE_DEPENDENCIES += uboot
+endif
 
 ifeq ($(ARM_TRUSTED_FIRMWARE_VERSION),custom)
 # Handle custom ATF tarballs as specified by the configuration
diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index 8215912..4751593 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -158,6 +158,16 @@ config BR2_TARGET_UBOOT_NEEDS_OPENSSL
 	  typically the case when the board configuration has
 	  CONFIG_FIT_SIGNATURE enabled.
 
+config BR2_TARGET_UBOOT_NEEDS_ATF
+	bool "U-Boot needs ATF"
+	depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE
+	help
+	  For building U-Boot proper in Allwinner A64/H5, ATF need
+	  to build first and ATF binary need to be exported.
+	  This config typically export ATF binary and disable
+	  U-Boot dependency in ATF becuase except U-Boot dependent
+	  boards(like juno) ideally ATF will build prior to U-Boot.
+
 menu "U-Boot binary format"
 
 config BR2_TARGET_UBOOT_FORMAT_AIS
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index fdacf16..cbd2225 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -134,6 +134,11 @@ UBOOT_MAKE_OPTS += \
 	HOSTCC="$(HOSTCC) $(HOST_CFLAGS)" \
 	HOSTLDFLAGS="$(HOST_LDFLAGS)"
 
+ifeq ($(BR2_TARGET_UBOOT_NEEDS_ATF),y)
+UBOOT_MAKE_OPTS += \
+	BL31=${BUILD_DIR}/arm-trusted-firmware-${BR2_TARGET_ARM_TRUSTED_FIRMWARE_VERSION}/build/${BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM}/release/${BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES}.bin
+endif
+
 ifeq ($(BR2_TARGET_UBOOT_NEEDS_DTC),y)
 UBOOT_DEPENDENCIES += host-dtc
 endif
-- 
1.9.1

  parent reply	other threads:[~2017-11-01 18:05 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-01 18:05 [Buildroot] [PATCH v5 00/11] board: Add Allwinner A64/H5 boards Jagan Teki
2017-11-01 18:05 ` [Buildroot] [PATCH v5 01/11] arm-trusted-firmware: Build FIP for BL33 Jagan Teki
2017-11-01 18:05 ` Jagan Teki [this message]
2017-11-01 18:05 ` [Buildroot] [PATCH v5 03/11] board: Add Bananapi M64 support Jagan Teki
     [not found]   ` <20171103181810202829132@banana-pi.com>
     [not found]     ` <2017110815285072387665@banana-pi.com>
2017-11-08  7:39       ` [Buildroot] 回复: " Thomas Petazzoni
2017-11-08  7:44         ` Jagan Teki
2017-12-02 14:58   ` [Buildroot] " Thomas Petazzoni
2017-12-02 15:10     ` Jagan Teki
2017-12-04 15:03       ` Andre Przywara
2017-12-04 15:18         ` Thomas Petazzoni
2017-11-01 18:05 ` [Buildroot] [PATCH v5 04/11] board: Add Pine64 support Jagan Teki
2017-11-01 18:05 ` [Buildroot] [PATCH v5 05/11] board: Add SoPine support Jagan Teki
2017-11-01 18:05 ` [Buildroot] [PATCH v5 06/11] board: Add FriendlyARM Nanopi A64 support Jagan Teki
2017-11-01 18:05 ` [Buildroot] [PATCH v5 07/11] board: Add FriendlyARM Nanopi NEO2 support Jagan Teki
2017-11-01 18:05 ` [Buildroot] [PATCH v5 08/11] board: Add Olimex A64-OLinuXino support Jagan Teki
2017-11-01 18:05 ` [Buildroot] [PATCH v5 09/11] board: Add Orangepi Win/Win Plus support Jagan Teki
2017-11-01 18:05 ` [Buildroot] [PATCH v5 10/11] board: Add Orangepi Prime support Jagan Teki
2017-11-01 18:05 ` [Buildroot] [PATCH v5 11/11] board: Add Orangepi Zero Plus2 support Jagan Teki
2017-11-06  9:39 ` [Buildroot] [PATCH v5 00/11] board: Add Allwinner A64/H5 boards Jagan Teki
2017-11-06  9:48   ` Thomas Petazzoni
2017-11-10  6:06     ` Jagan Teki
2017-11-10 12:33       ` nimaim
2017-11-23 16:27       ` Jagan Teki
2017-11-23 16:32         ` Thomas Petazzoni
2017-12-03 21:51 ` Thomas Petazzoni
2017-12-04  4:43   ` Jagan Teki
2017-12-04  8:04     ` Thomas Petazzoni
2017-12-19 20:48 ` Sergey Matyukevich
2017-12-20  9:05   ` Jagan Teki

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=1509559553-26544-3-git-send-email-jagan@amarulasolutions.com \
    --to=jagannadh.teki@gmail.com \
    --cc=buildroot@busybox.net \
    /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 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.