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

Simon Glass sjg at chromium.org
Sun Nov 26 11:38:42 UTC 2017


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>
> ---
>  dts/Makefile         | 35 +++++++++++++++++++++++++++++++----
>  include/common.h     |  1 +
>  lib/fdtdec.c         |  4 ++++
>  scripts/Makefile.spl | 20 ++------------------
>  4 files changed, 38 insertions(+), 22 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list