[PATCH 1/3] Add support for creating barebox.img file.

Teresa Gámez t.gamez at phytec.de
Thu Sep 20 10:02:02 EDT 2012


The AM335x U-boot SPL expects to load a u-boot image when booting
from SD-Card.

Based on code of Jan Luebbe <jlu at pengutronix.de>

Signed-off-by: Teresa Gámez <t.gamez at phytec.de>
---
 .gitignore |    1 +
 Makefile   |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
index 4154c73..d147992 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,6 +31,7 @@ cross_compile
 barebox
 barebox.S
 barebox.bin
+barebox.img
 barebox.srec
 barebox.netx
 barebox.s5p
diff --git a/Makefile b/Makefile
index c6264d3..3c3cde4 100644
--- a/Makefile
+++ b/Makefile
@@ -680,6 +680,11 @@ ifndef CONFIG_PBL_IMAGE
 	$(call cmd,check_file_size,$(CONFIG_BAREBOX_MAX_IMAGE_SIZE))
 endif
 
+barebox.img: barebox.bin
+	$(srctree)/scripts/mkimage -A $(ARCH) -T firmware -C none \
+	-O barebox -a $(CONFIG_TEXT_BASE) -e $(CONFIG_TEXT_BASE) \
+	-n "barebox $(KERNELRELEASE)" -d $< $@
+
 ifdef CONFIG_X86
 barebox.S: barebox
 ifdef CONFIG_X86_HDBOOT
-- 
1.7.0.4




More information about the barebox mailing list