From 501ebdf28666b3142a27c4b4fe6b76a159564ffd Mon Sep 17 00:00:00 2001 From: Stephen Warren Date: Wed, 24 Jul 2013 10:09:16 -0700 Subject: Validate dtc is new enough Subsequent patches assume that dtc supports various recent features. These are available in dtc 1.4.0. Validate that dtc is at least that version. Signed-off-by: Stephen Warren Acked-by: Simon Glass --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7206abac1f..d545d306fd 100644 --- a/Makefile +++ b/Makefile @@ -413,7 +413,7 @@ endif all: $(ALL-y) $(SUBDIR_EXAMPLES) -$(obj)u-boot.dtb: $(obj)u-boot +$(obj)u-boot.dtb: checkdtc $(obj)u-boot $(MAKE) -C dts binary mv $(obj)dts/dt.dtb $@ @@ -667,6 +667,12 @@ checkgcc4: false; \ fi +checkdtc: + @if test $(call dtc-version) -lt 0104; then \ + echo '*** Your dtc is too old, please upgrade to dtc 1.4 or newer'; \ + false; \ + fi + # # Auto-generate the autoconf.mk file (which is included by all makefiles) # -- cgit