
5 Jan
2019
5 Jan
'19
2:56 a.m.
On Mon, 17 Dec 2018 at 12:11, Simon Goldschmidt simon.k.r.goldschmidt@gmail.com wrote:
From: Simon Goldschmidt sgoldschmidt@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@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@chromium.org