Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 1/2] uboot: Add support for U-Boot TPL
Date: Wed, 15 Nov 2017 23:15:11 +0100	[thread overview]
Message-ID: <20171115231511.5d9626e5@windsurf.lan> (raw)
In-Reply-To: <1510664226-32208-1-git-send-email-jagan@amarulasolutions.com>

Hello Jagan,

On Tue, 14 Nov 2017 13:57:05 +0100, Jagan Teki wrote:

> +config BR2_TARGET_UBOOT_TPL
> +	bool "Install U-Boot TPL binary image"
> +	depends on BR2_TARGET_UBOOT_SPL
> +	help
> +	  Install the U-Boot TPL binary image to the images
> +	  directory.
> +	  TPL is first stage bootloader, On rk3288 vyasa board due to size
> +	  limitation on SPL.
> +
> +	  Since the size of SPL can't be exceeded 0x8000 bytes in RK3288,
> +	  it is not possible add new SPL features like Falcon mode or etc.
> +
> +	  So add TPL stage so-that adding new features to SPL is possible.
> +	  - TPL: DRAM init, clocks
> +	  - SPL: MMC, falcon, etc
> +
> +config BR2_TARGET_UBOOT_TPL_NAME
> +	string "U-Boot TPL binary image name"
> +	default "tpl/u-boot-tpl.bin"
> +	depends on BR2_TARGET_UBOOT_TPL
> +	help
> +	  A space-separated list of TPL binaries, generated during
> +	  u-boot build. For most platform it is spl/u-boot-tpl.bin but
> +	  not always.
> +
>  config BR2_TARGET_UBOOT_ZYNQ_IMAGE
>  	bool "Generate image for Xilinx Zynq"
>  	depends on BR2_arm
> diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
> index fdacf16..5702ca6 100644
> --- a/boot/uboot/uboot.mk
> +++ b/boot/uboot/uboot.mk
> @@ -242,6 +242,11 @@ define UBOOT_INSTALL_IMAGES_CMDS
>  			cp -dpf $(@D)/$(f) $(BINARIES_DIR)/
>  		)
>  	)
> +	$(if $(BR2_TARGET_UBOOT_TPL),
> +		$(foreach f,$(call qstrip,$(BR2_TARGET_UBOOT_TPL_NAME)), \
> +			cp -dpf $(@D)/$(f) $(BINARIES_DIR)/
> +		)
> +	)

I don't think we need this additional option. Just list the TPL name
within the BR2_TARGET_UBOOT_SPL_NAME option (this option accepts a
space-separated list of binaries).

Of course, the Config.in help text of BR2_TARGET_UBOOT_SPL_NAME could
be updated to indicate that both SPL and TPL can be specified with this
option.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

      parent reply	other threads:[~2017-11-15 22:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-14 12:57 [Buildroot] [PATCH v3 1/2] uboot: Add support for U-Boot TPL Jagan Teki
2017-11-14 12:57 ` [Buildroot] [PATCH v3 2/2] board: Add Vyasa RK388 board support Jagan Teki
2017-11-15 22:15 ` Thomas Petazzoni [this message]

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=20171115231511.5d9626e5@windsurf.lan \
    --to=thomas.petazzoni@free-electrons.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox