summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-01-14 14:48:08 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-18 09:42:50 +0100
commit51b307f6ec4c1cdb53771ef016f93aeef8831e97 (patch)
tree448931c0bcd83726e255b92714e478c4a83d5d9c
parent1721998b1e8c069ad77aa5f52806aab46d8138b2 (diff)
downloadbarebox-51b307f6ec4c1cdb53771ef016f93aeef8831e97.tar.gz
barebox-51b307f6ec4c1cdb53771ef016f93aeef8831e97.tar.xz
images: check for use of obsolete pblx-*
pblx-* has been removed in 5a1a5ed253 ("ARM: images: use piggydata") and using it (e.g. because a patchset was rebased) results in a non-obvious: make[1]: *** No rule to make target 'images/*.pblx.*', \ needed by 'images/barebox-*.img'. Stop. Avoid this by explicitly failing with an error message whenever pblx-y or pblx- has been defined. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--images/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/images/Makefile b/images/Makefile
index aaf7479a70..eeea172d63 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -112,6 +112,10 @@ include $(srctree)/images/Makefile.xburst
include $(srctree)/images/Makefile.at91
include $(srctree)/images/Makefile.zynqmp
+ifneq ($(pblx-y)$(pblx-),)
+ $(error pblx- has been removed. Please use pblb- instead.)
+endif
+
targets += $(image-y) pbl.lds barebox.x barebox.z piggy.o
targets += $(patsubst %,%.pblb,$(pblb-y))
targets += $(patsubst %,%.pbl,$(pblb-y))