dts/Makefile: Build the user specified dts
PATCH v2 1/1 dts/Makefile: Build the user specified dts
This patch provides a support to build the user specified dts.
Signed-off-by Jagannadha Sutradharudu Teki <[email protected]>
---
Changes for v2:
- Update the logic for not giving an error if DEVICE_TREE defined
- Documented the build steps
doc/README.fdt-control | 8 ++++++++ dts/Makefile | 2 ++ 2 files changed, 10 insertions(+), 0 deletions(-)
doc/README.fdt-control +8 -0
@@ -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=<dts-file-name> + Limitations -----------
dts/Makefile +2 -0
@@ -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. \
Signature · 1 line
1.7.4
PATCH v2 1/1 dts/Makefile: Build the user specified dts
Quoted 3 lines · Jagannadha Sutradharudu Teki
This patch provides a support to build the user specified dts.
Signed-off-by Jagannadha Sutradharudu Teki <[email protected]>
Acked-by Simon Glass <[email protected]>
Thank you.
Quoted 47 lines
---
Changes for v2:
- Update the logic for not giving an error ifDEVICE_TREEdefined
- Documented the build stepsdoc/README.fdt-control | 8 ++++++++ dts/Makefile | 2 ++ 2 files changed, 10 insertions(+), 0 deletions(-)doc/README.fdt-control +8
-0@@ -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=<dts-file-name> + Limitations -----------dts/Makefile +2
-1@@ -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. \ --1.7.4
PATCH v2 1/1 dts/Makefile: Build the user specified dts
In reply to Jagannadha Sutradharudu TekiQuoted 4 lines · Jagannadha Sutradharudu Teki
This patch provides a support to build the user specified dts.
Signed-off-by Jagannadha Sutradharudu Teki <[email protected]>Acked-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130403/59f0a3a4/attachment.pgp>