linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] bootwrapper: Add CONFIG_DEVICE_TREE
@ 2007-04-16 23:24 Scott Wood
  2007-04-16 23:25 ` [PATCH 2/4] bootwrapper: Add a cuboot platform and a cuImage target Scott Wood
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Scott Wood @ 2007-04-16 23:24 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev

This provides a way to tell the bootwrapper makefile which device tree to
include by default.  The wrapper can still be invoked standalone to wrap
with a different device tree without reconfiguring the kernel, if that is
desired.

The user will only be asked to provide a device tree if the platform
selects CONFIG_WANT_DEVICE_TREE.

Signed-off-by: Scott Wood <scottwood@freescale.com>
---
Note that Kumar has said he's in favor of always asking (at least when
not on true OF) so that the dts name can be used from external build
scripts.  I'm not convinced that that's a good idea (after all, such
scripts will need other parameters (e.g. the u-boot target name) which
definitely should not go in the kernel .config); however, I don't care
all that much whether you pull this patch or the previous version (which
asked unconditionally).

 arch/powerpc/Kconfig |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 740892a..9fe636d 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -162,6 +162,7 @@ config PPC_83xx
 	select FSL_SOC
 	select 83xx
 	select PPC_FPU
+	select WANT_DEVICE_TREE
 
 config PPC_85xx
 	bool "Freescale 85xx"
@@ -591,6 +592,29 @@ config SECCOMP
 
 	  If unsure, say Y. Only embedded should say N here.
 
+config WANT_DEVICE_TREE
+	bool
+	default n
+
+config DEVICE_TREE
+	string "Static device tree source file"
+	depends on WANT_DEVICE_TREE
+	help
+	  This specifies the device tree source (.dts) file to be
+	  compiled and included when building the bootwrapper.  If a
+	  relative filename is given, then it will be relative to
+	  arch/powerpc/boot/dts.  If you are not using the bootwrapper,
+	  or do not need to build a dts into the bootwrapper, this
+	  field is ignored.
+
+	  For example, this is required when building a cuImage target
+	  for an older U-Boot, which cannot pass a device tree itself.
+	  Such a kernel will not work with a newer U-Boot that tries to
+	  pass a device tree (unless you tell it not to).  If your U-Boot
+	  does not mention a device tree in "help bootm", then use the
+	  cuImage target and specify a device tree here.  Otherwise, use
+	  the uImage target and leave this field blank.
+
 endmenu
 
 config ISA_DMA_API
-- 
1.5.0.3

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

end of thread, other threads:[~2007-04-24 17:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-16 23:24 [PATCH 1/4] bootwrapper: Add CONFIG_DEVICE_TREE Scott Wood
2007-04-16 23:25 ` [PATCH 2/4] bootwrapper: Add a cuboot platform and a cuImage target Scott Wood
2007-04-16 23:25 ` [PATCH 3/4] bootwrapper: Add ppcboot.h Scott Wood
2007-04-17  9:03   ` Wolfgang Denk
2007-04-17 16:35     ` Scott Wood
2007-04-24  5:17     ` Paul Mackerras
2007-04-24 17:33       ` Scott Wood
2007-04-16 23:25 ` [PATCH 4/4] bootwrapper: cuboot for 83xx Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).