summaryrefslogtreecommitdiff
path: root/dts
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2011-06-16 13:29:47 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:39:29 -0700
commit50d5b04a93a5ba7fb1762615d410932392c3fe30 (patch)
tree9bec45fc196d683f0f92d3c3c0581bd13a6de42f /dts
parentee8eb6e15d3aad43744b68661bed4c2f22d26fb5 (diff)
Allow pick device tree by specifying an environment variable.
The default device tree used by the make system is board/nvidia/seaboard/tegra2-seaboard.dts, it is expected to be defined in the main config file used by the related targets. If 'DEV_TREE_SRC' is defined in the environment, the file board/nvidia/seaboard/${DEV_TREE_SRC} is used as the device tree source instead. ./mkconfig is being restored to remove the device tree related changes. BUG=chromium-os:834 TEST=manual Change-Id: I2232c5f4413b719057ec3def77ca03a78068c3c9 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: http://gerrit.chromium.org/gerrit/2776 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'dts')
-rw-r--r--dts/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/dts/Makefile b/dts/Makefile
index 9e4cc841e6..47b707ec7d 100644
--- a/dts/Makefile
+++ b/dts/Makefile
@@ -24,6 +24,12 @@ include $(TOPDIR)/config.mk
LIB = $(obj)libdts.o
+ifeq ($(DEV_TREE_SRC),)
+DEVICE_TREE = $(subst ",,$(CONFIG_DEFAULT_DEVICE_TREE))
+else
+DEVICE_TREE = $(DEV_TREE_SRC)
+endif
+
# Use a constant name for this so we can access it from C code.
# objcopy doesn't seem to allow us to set the symbol name independently of
# the filename.