spl: make CONFIG_OF_EMBED pass dts through fdtgrep
authorGoldschmidt Simon <sgoldschmidt@de.pepperl-fuchs.com>
Tue, 21 Nov 2017 12:29:56 +0000 (12:29 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 30 Nov 2017 03:36:58 +0000 (22:36 -0500)
commit9bd76b807636599712b4f932da9b57d5d3e8fad4
tree1c1c3f92377a23e1ae6e1cbb3d17ba3f22bb1d7e
parent20188f519a75e9d6cdd97c9e747c2550af07eb5f
spl: make CONFIG_OF_EMBED pass dts through fdtgrep

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@de.pepperl-fuchs.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
dts/Makefile
include/common.h
lib/fdtdec.c
scripts/Makefile.spl