[U-Boot] [PATCH v2] image: fix compiling without CMD_FDT

Simon Glass sjg at chromium.org
Sat Jan 5 01:56:52 UTC 2019


On Mon, 17 Dec 2018 at 12:11, Simon Goldschmidt
<simon.k.r.goldschmidt at gmail.com> wrote:
>
> From: Simon Goldschmidt <sgoldschmidt at de.pepperl-fuchs.com>
>
> Booting an image currently sets the environment variable "fdtaddr"
> by calling into 'cmd/fdt.c'. As a result, linking U-Boot fails if
> CMD_FDT is not enabled.
>
> Fix this by adding 'if (CONFIG_IS_ENABLED(CMD_FDT))' to the two
> places where 'set_working_fdt_addr()' is called.
>
> Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>
> ---
>
> Changes in v2:
> - fixed whitespace (v1 had spaces instead of tabs)
>
>  common/bootm.c     | 3 ++-
>  common/image-fdt.c | 3 ++-
>  2 files changed, 4 insertions(+), 2 deletions(-)

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


More information about the U-Boot mailing list