[PATCH 2/8] Makefile: add target to produce a SPL compatible uimage

Jan Luebbe jlu at pengutronix.de
Wed Sep 5 11:52:10 EDT 2012


Signed-off-by: Jan Luebbe <jlu at pengutronix.de>
---
 Makefile |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Makefile b/Makefile
index c6264d3..69e28e3 100644
--- a/Makefile
+++ b/Makefile
@@ -680,6 +680,16 @@ ifndef CONFIG_PBL_IMAGE
 	$(call cmd,check_file_size,$(CONFIG_BAREBOX_MAX_IMAGE_SIZE))
 endif
 
+# For development provide a target which makes barebox loadable by an
+# unmodified u-boot
+quiet_cmd_barebox_mkimage = MKIMAGE $@
+      cmd_barebox_mkimage = $(srctree)/scripts/mkimage -A $(ARCH) -T firmware -C none \
+	-O barebox -a $(CONFIG_TEXT_BASE) -e $(CONFIG_TEXT_BASE) \
+	-n "barebox $(KERNELRELEASE)" -d $< $@
+
+barebox.img: barebox.bin FORCE
+	$(call if_changed,barebox_mkimage)
+
 ifdef CONFIG_X86
 barebox.S: barebox
 ifdef CONFIG_X86_HDBOOT
-- 
1.7.10.4




More information about the barebox mailing list