public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] cmd: fdt: Use separate CMD_FDT Kconfig entry instead of OF_LIBFDT
@ 2016-04-04 17:50 Michal Simek
  2016-04-05  0:03 ` Simon Glass
  0 siblings, 1 reply; 13+ messages in thread
From: Michal Simek @ 2016-04-04 17:50 UTC (permalink / raw)
  To: u-boot

Create CMD_FDT Kconfig entry to have an option to disable fdt command
which is not required for small configuration which requires libfdt
only.
Enable it by default for all targets which enables OF_LIBFDT.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 cmd/Kconfig  | 7 +++++++
 cmd/Makefile | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index fe8b4f0510da..8703cdb4a9be 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -173,6 +173,13 @@ config CMD_ELF
 	help
 	  Boot an ELF/vxWorks image from the memory.
 
+config CMD_FDT
+	bool "Flattened Device Tree utility commands"
+	default y
+	depends on OF_LIBFDT
+	help
+	  Do FDT related setup before booting into the Operating System.
+
 config CMD_GO
 	bool "go"
 	default y
diff --git a/cmd/Makefile b/cmd/Makefile
index ba041973079c..f95759e67044 100644
--- a/cmd/Makefile
+++ b/cmd/Makefile
@@ -54,7 +54,7 @@ obj-$(CONFIG_CMD_EXT4) += ext4.o
 obj-$(CONFIG_CMD_EXT2) += ext2.o
 obj-$(CONFIG_CMD_FAT) += fat.o
 obj-$(CONFIG_CMD_FDC) += fdc.o
-obj-$(CONFIG_OF_LIBFDT) += fdt.o
+obj-$(CONFIG_CMD_FDT) += fdt.o
 obj-$(CONFIG_CMD_FITUPD) += fitupd.o
 obj-$(CONFIG_CMD_FLASH) += flash.o
 ifdef CONFIG_FPGA
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-04-20 14:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-04 17:50 [U-Boot] [PATCH] cmd: fdt: Use separate CMD_FDT Kconfig entry instead of OF_LIBFDT Michal Simek
2016-04-05  0:03 ` Simon Glass
2016-04-05 10:15   ` Michal Simek
2016-04-05 19:09     ` Simon Glass
2016-04-06  1:28       ` Masahiro Yamada
2016-04-06 18:28         ` Michal Simek
2016-04-09 18:36           ` Simon Glass
2016-04-11 14:41             ` Michal Simek
2016-04-11 14:43               ` Simon Glass
2016-04-11 14:48                 ` Michal Simek
2016-04-11 14:50                   ` Simon Glass
2016-04-11 14:59                     ` Michal Simek
2016-04-20 14:40                       ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox