summaryrefslogtreecommitdiffstats
path: root/images
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-06-25 10:51:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-07-01 10:14:35 +0200
commitbade1dbf4644ad67a20f0572ff7d72e16c0a2b09 (patch)
treea81627a543ff71d707e679aa3933164d8b279af4 /images
parent2078438662a5343cb32eb799daf9de7693c63def (diff)
downloadbarebox-bade1dbf4644ad67a20f0572ff7d72e16c0a2b09.tar.gz
barebox-bade1dbf4644ad67a20f0572ff7d72e16c0a2b09.tar.xz
ARM: i.MX: Add multi images support Makefile
This adds images/Makefile.imx which will contain the i.MX specific image generation snippets. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'images')
-rw-r--r--images/Makefile2
-rw-r--r--images/Makefile.imx10
2 files changed, 12 insertions, 0 deletions
diff --git a/images/Makefile b/images/Makefile
index fe1f77d407..925a98793b 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 0000000000..cd7b610bb1
--- /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