
On Thu, Jul 20, 2017 at 07:02:35PM +0200, Jean-Jacques Hiblot wrote:
u-boot can be embedded within a FIT image with multiple DTBs. It then selects at run-time which one is best suited for the platform. Use the same principle here for the SPL: put the DTBs in a FIT image, compress it (LZO, GZIP, or no compression) and append it at the end of the SPL.
Signed-off-by: Jean-Jacques Hiblot jjhiblot@ti.com
dts/Kconfig | 76 ++++++++++++++++++++++++++++++++++++++++++++++ lib/fdtdec.c | 85 ++++++++++++++++++++++++++++++++++++++++++++++------ scripts/Makefile.spl | 35 +++++++++++++++++++++- 3 files changed, 186 insertions(+), 10 deletions(-)
diff --git a/dts/Kconfig b/dts/Kconfig index c78438a..2b9ea42 100644 --- a/dts/Kconfig +++ b/dts/Kconfig @@ -118,6 +118,82 @@ config MULTI_DTB_FIT the correct DTB to be used. Use this if you need to support multiple DTBs but don't use the SPL.
+config SPL_MULTI_DTB_FIT
- depends on SPL_LOAD_FIT && SPL_OF_CONTROL && !SPL_OF_PLATDATA
- bool "support embedding several DTBs in a FIT image for the SPL"
- default n
n is the default already, please add some help.