summaryrefslogtreecommitdiff
path: root/dts/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dts/Makefile')
-rw-r--r--dts/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/dts/Makefile b/dts/Makefile
index 6f36153634..03e163ef0a 100644
--- a/dts/Makefile
+++ b/dts/Makefile
@@ -27,9 +27,11 @@ include $(TOPDIR)/config.mk
LIB = $(obj)libdts.o
+ifeq ($(DEVICE_TREE),)
$(if $(CONFIG_DEFAULT_DEVICE_TREE),,\
$(error Please define CONFIG_DEFAULT_DEVICE_TREE in your board header file))
DEVICE_TREE = $(subst ",,$(CONFIG_DEFAULT_DEVICE_TREE))
+endif
$(if $(CONFIG_ARCH_DEVICE_TREE),,\
$(error Your architecture does not have device tree support enabled. \