summaryrefslogtreecommitdiffstats
path: root/images/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-07-24 00:04:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-08-12 17:47:06 +0200
commit19375230102d151a76842a9c9caea905bd4d7fbd (patch)
treedfb9186ead41688beba3a197f81ddc59a55bfb1a /images/Makefile
parentb454c494bab60ac87f62063afa98751d3654ceb8 (diff)
downloadbarebox-19375230102d151a76842a9c9caea905bd4d7fbd.tar.gz
barebox-19375230102d151a76842a9c9caea905bd4d7fbd.tar.xz
images: get rid of imximage-y
imximage-y is only needed to add its content to $targets so that the build system does not rebuild the files because of the files not being in $targets. Automatically generate the files and add them to $targets and remove imximage-y Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'images/Makefile')
-rw-r--r--images/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/images/Makefile b/images/Makefile
index 65c533ac09..79c3dc3d4c 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -32,7 +32,6 @@
# can generate images with a sane name. So what we really need for this
# board is a i.MX specific image, a .imximg
#
-## imximage-$(CONFIG_MACH_FREESCALE_MX51_PDK) += start_imx51_babbage.pblx.imximg
## CFG_start_imx51_babbage.pblx.imximg = $(board)/freescale-mx51-pdk/flash-header.imxcfg
#
# The .imximg can be generated from a .pblx using a rule specified in Makefile.imx.
@@ -114,7 +113,7 @@ targets += $(patsubst %,%.pblx,$(pblx-y))
targets += $(patsubst %,%.pblb,$(pblx-y))
targets += $(patsubst %,%.pbl,$(pblx-y))
targets += $(patsubst %,%.s,$(pblx-y))
-targets += $(imximage-y)
+targets += $(foreach m, $(image-y), $(FILE_$(m)))
SECONDARY: $(addprefix $(obj)/,$(targets))