[PATCH 07/12] ARM: i.MX: Add multi images support Makefile
Sascha Hauer
s.hauer at pengutronix.de
Tue Jun 25 05:20:47 EDT 2013
This adds images/Makefile.imx which will contain the i.MX
specific image generation snippets.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
images/Makefile | 2 ++
images/Makefile.imx | 10 ++++++++++
2 files changed, 12 insertions(+)
create mode 100644 images/Makefile.imx
diff --git a/images/Makefile b/images/Makefile
index fe1f77d..925a987 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -106,6 +106,8 @@ $(obj)/%.img: $(obj)/$$(FILE_$$(@F))
$(Q)if [ -z $(FILE_$(@F)) ]; then echo "FILE_$(@F) empty!"; false; fi
$(call if_changed,shipped)
+include $(srctree)/images/Makefile.imx
+
targets += $(image-y) pbl.lds barebox.x barebox.z
targets += $(patsubst %,%.pblx,$(pblx-y))
targets += $(patsubst %,%.pblb,$(pblx-y))
diff --git a/images/Makefile.imx b/images/Makefile.imx
new file mode 100644
index 0000000..cd7b610
--- /dev/null
+++ b/images/Makefile.imx
@@ -0,0 +1,10 @@
+#
+# barebox image generation Makefile for i.MX images
+#
+
+# %.imximg - convert into i.MX image
+# ----------------------------------------------------------------
+$(obj)/%.imximg: $(obj)/% FORCE
+ $(call if_changed,imx_image)
+
+board = $(srctree)/arch/$(ARCH)/boards
--
1.8.3.1
More information about the barebox
mailing list