From: Jagannadha Sutradharudu Teki Date: Thu, 28 Feb 2013 10:20:18 +0000 (+0000) Subject: dts/Makefile: Build the user specified dts X-Git-Tag: v2013.04-rc2~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=74de8c9a1672be6c41a6815f484b5958f8241af4;p=oweals%2Fu-boot.git dts/Makefile: Build the user specified dts This patch provides a support to build the user specified dts. Signed-off-by: Jagannadha Sutradharudu Teki Acked-by: Simon Glass --- diff --git a/doc/README.fdt-control b/doc/README.fdt-control index 85bda03504..8352835ee9 100644 --- a/doc/README.fdt-control +++ b/doc/README.fdt-control @@ -156,6 +156,14 @@ To use this, put something like this in your board header file: #define CONFIG_EXTRA_ENV_SETTINGS "fdtcontroladdr=10000\0" +Build: + +After board configuration is done, fdt supported u-boot can be build in two ways: +1) build the default dts which is defined from CONFIG_DEFAULT_DEVICE_TREE + $ make +2) build the user specified dts file + $ make DEVICE_TREE= + Limitations ----------- 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. \