summaryrefslogtreecommitdiff
path: root/dts/Makefile
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com>2013-02-28 10:20:18 +0000
committerTom Rini <trini@ti.com>2013-04-02 16:23:34 -0400
commit74de8c9a1672be6c41a6815f484b5958f8241af4 (patch)
tree2f40fd8fa91880964d323cd7113fcd3f535f2c2c /dts/Makefile
parent472d546054dadacca91530bad42ad06f6408124e (diff)
dts/Makefile: Build the user specified dts
This patch provides a support to build the user specified dts. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com> Acked-by: Simon Glass <sjg@chromium.org>
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. \