mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-20 20:04:46 +00:00
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>
This commit is contained in:
parent
472d546054
commit
74de8c9a16
2 changed files with 10 additions and 0 deletions
|
@ -156,6 +156,14 @@ To use this, put something like this in your board header file:
|
||||||
|
|
||||||
#define CONFIG_EXTRA_ENV_SETTINGS "fdtcontroladdr=10000\0"
|
#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=<dts-file-name>
|
||||||
|
|
||||||
|
|
||||||
Limitations
|
Limitations
|
||||||
-----------
|
-----------
|
||||||
|
|
|
@ -27,9 +27,11 @@ include $(TOPDIR)/config.mk
|
||||||
|
|
||||||
LIB = $(obj)libdts.o
|
LIB = $(obj)libdts.o
|
||||||
|
|
||||||
|
ifeq ($(DEVICE_TREE),)
|
||||||
$(if $(CONFIG_DEFAULT_DEVICE_TREE),,\
|
$(if $(CONFIG_DEFAULT_DEVICE_TREE),,\
|
||||||
$(error Please define CONFIG_DEFAULT_DEVICE_TREE in your board header file))
|
$(error Please define CONFIG_DEFAULT_DEVICE_TREE in your board header file))
|
||||||
DEVICE_TREE = $(subst ",,$(CONFIG_DEFAULT_DEVICE_TREE))
|
DEVICE_TREE = $(subst ",,$(CONFIG_DEFAULT_DEVICE_TREE))
|
||||||
|
endif
|
||||||
|
|
||||||
$(if $(CONFIG_ARCH_DEVICE_TREE),,\
|
$(if $(CONFIG_ARCH_DEVICE_TREE),,\
|
||||||
$(error Your architecture does not have device tree support enabled. \
|
$(error Your architecture does not have device tree support enabled. \
|
||||||
|
|
Loading…
Add table
Reference in a new issue