[U-Boot] [PATCH V3] Fix FIT and fdt blob support to have CONFIG_OF_LIBFDT and CONFIG_FIT independant

Kumar Gala galak at kernel.crashing.org
Thu Dec 4 17:49:43 CET 2008


On Nov 24, 2008, at 6:33 AM, Jean-Christophe PLAGNIOL-VILLARD wrote:

> FDT support is used for both FIT style images and architectures  
> (ppc, m68k, sparc)
> that can pass a fdt blob to an OS..
>
> For other arch and board which do not pass a fdt blob to an OS but  
> want to use
> the new uImage format, we just need FIT support (ex : ARM).
>
> Now we can have the 4 following configurations :
>
> 1) FIT only             CONFIG_FIT
> 2) fdt blob only        CONFIG_OF_LIBFDT
> 3) both                 CONFIG_OF_LIBFDT & CONFIG_FIT
> 4) none                 none
>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD  
> <plagnioj at jcrosoft.com>
> ---
> actually not clean integration have been found to avoid
> defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_SPARC)
> by replacing it with the 2 news macro.
>
> removing arch macro ifdef and use 2 new config for the  
> functionnality to enable
> so we introduce these :
> 	CONFIG_BOOT_INIT_RAMDISK
>
> 	Define this if you want support for relocating init ramdisk
>
> 	CONFIG_BOOT_INIT_RAMDISK
>
> 	Define this if you want support for allocate and initialize kernel
> 	information for booting
>
> if someone have a good idea please send a patch
>
> Best Regards,
> J.
> common/image.c  |    2 ++
> include/image.h |    4 ----
> libfdt/Makefile |    8 ++++++--
> 3 files changed, 8 insertions(+), 6 deletions(-)

Tested-by: Kumar Gala <galak at kernel.crashing.org>

(that is boot tested, not much more than that)

- k


More information about the U-Boot mailing list