[U-Boot] [PATCH] spl: make CONFIG_OF_EMBED pass dts through fdtgrep

Lokesh Vutla lokeshvutla at ti.com
Tue Jan 9 14:42:34 UTC 2018



On Sunday 26 November 2017 05:08 PM, Simon Glass wrote:
> On 21 November 2017 at 05:29, Goldschmidt Simon
> <sgoldschmidt at de.pepperl-fuchs.com> wrote:
>> Building spl with CONFIG_OF_EMBED enabled results in an error message
>> on my board: "SPL image too big". This is because the fdtgrep build
>> step is only executed for CONFIG_OF_SEPARATE.
>>
>> Fix this by moving the fdtgrep build step ('cmd_fdtgreo') from
>> scripts/Makefile.spl to dts/Makefile so that the reduced dtb is
>> available for all kinds of spl builds.
>>
>> The resulting variable name for the embedded device tree blob changes,
>> too, which is why common.h and fdtdec.c have tiny changes.
>>
>> Signed-off-by: Simon Goldschmidt <sgoldschmidt at de.pepperl-fuchs.com>

This is breaking SPL build with CONFIG_SPL_MULTI_DTB_FIT enabled as it
tries to call fdtgrep for shrinking all the dtbs in SPL_OF_LIST.

Thanks and regards,
Lokesh


More information about the U-Boot mailing list