[U-Boot-Users] [PATCH] Make it possible to use a builtin OF tree.

Grant Likely grant.likely at secretlab.ca
Tue Nov 27 04:06:00 CET 2007


On 11/25/07, Joakim Tjernlund <Joakim.Tjernlund at transmode.se> wrote:
>
> Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
> ---
>  common/cmd_bootm.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
> index d816349..8405de7 100644
> --- a/common/cmd_bootm.c
> +++ b/common/cmd_bootm.c
> @@ -507,6 +507,9 @@ fixup_silent_linux ()
>  #endif /* CONFIG_SILENT_CONSOLE */
>
>  #ifdef CONFIG_PPC
> +#ifndef DEFAULT_OF_TREE
> + #define DEFAULT_OF_TREE NULL
> +#endif

Where is DEFAULT_OF_TREE intended to be defined?  I don't want to get
into defining it in any of the include/configs/*.h files since the
goal is to move over to a Kconfig system and eliminate the per-board
config files entirely.

It might be better to do this with two linker symbols around a .dtb
section.  If the two symbols are identical, then no dtb was provided.
Otherwise, go ahead and use the section as the default dtb.

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195




More information about the U-Boot mailing list