Signed-off-by: Jan Luebbe <[email protected]>
---
 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


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to