* [Buildroot] [PATCH] u-boot: support custom u-boot.bin name
@ 2013-07-24 9:50 Thomas De Schampheleire
2013-07-27 12:38 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Thomas De Schampheleire @ 2013-07-24 9:50 UTC (permalink / raw)
To: buildroot
On some platforms, the standard U-Boot binary is not called u-boot.bin,
but u-boot<something>.bin. This is for example the case on the
Cavium-provided u-boot, where the output file is called
u-boot_<boardname>.bin.
This patch adds a 'custom format' choice in the existing u-boot binary
format selection, where this name can be put. In the Cavium example, this
option could be set to:
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-$(BR2_TARGET_UBOOT_BOARDNAME).bin"
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
---
boot/uboot/Config.in | 16 ++++++++++++++++
boot/uboot/uboot.mk | 2 ++
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -101,8 +101,24 @@ config BR2_TARGET_UBOOT_FORMAT_LDR
config BR2_TARGET_UBOOT_FORMAT_ELF
bool "u-boot.elf"
+config BR2_TARGET_UBOOT_FORMAT_CUSTOM
+ bool "Custom (specify below)"
+ help
+ On some platforms, the standard U-Boot binary is not called
+ u-boot.bin, but u-boot<something>.bin. If this is your case,
+ you should select this option and specify the correct name
+ in BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME.
+
endchoice
+config BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME
+ string "U-Boot binary format: custom name"
+ depends on BR2_TARGET_UBOOT_FORMAT_CUSTOM
+ help
+ Specify the correct name of the output binary created by
+ U-Boot, if it is not one of the default names. For example:
+ u-boot_magic.bin
+
config BR2_TARGET_UBOOT_OMAP_IFT
depends on BR2_TARGET_UBOOT_FORMAT_BIN
depends on BR2_arm || BR2_armeb
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -40,6 +40,8 @@ else ifeq ($(BR2_TARGET_UBOOT_FORMAT_NAN
UBOOT_BIN = u-boot-nand.bin
else ifeq ($(BR2_TARGET_UBOOT_FORMAT_IMG),y)
UBOOT_BIN = u-boot.img
+else ifeq ($(BR2_TARGET_UBOOT_FORMAT_CUSTOM),y)
+UBOOT_BIN = $(call qstrip,$(BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME))
else
UBOOT_BIN = u-boot.bin
UBOOT_BIN_IFT = $(UBOOT_BIN).ift
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] u-boot: support custom u-boot.bin name
2013-07-24 9:50 [Buildroot] [PATCH] u-boot: support custom u-boot.bin name Thomas De Schampheleire
@ 2013-07-27 12:38 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2013-07-27 12:38 UTC (permalink / raw)
To: buildroot
Dear Thomas De Schampheleire,
On Wed, 24 Jul 2013 11:50:14 +0200, Thomas De Schampheleire wrote:
> On some platforms, the standard U-Boot binary is not called u-boot.bin,
> but u-boot<something>.bin. This is for example the case on the
> Cavium-provided u-boot, where the output file is called
> u-boot_<boardname>.bin.
>
> This patch adds a 'custom format' choice in the existing u-boot binary
> format selection, where this name can be put. In the Cavium example, this
> option could be set to:
> BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-$(BR2_TARGET_UBOOT_BOARDNAME).bin"
>
> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Committed, thanks.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-27 12:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-24 9:50 [Buildroot] [PATCH] u-boot: support custom u-boot.bin name Thomas De Schampheleire
2013-07-27 12:38 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox