|
@@ -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)
|
|
|
#
|