]> git.baikalelectronics.ru Git - uboot.git/commit
image: fix compiling without CMD_FDT
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Mon, 17 Dec 2018 19:14:42 +0000 (20:14 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 14 Jan 2019 22:42:32 +0000 (17:42 -0500)
commitb9ef907656fbf86ebf4e92a9e1c20646f494c15d
treeccb045332d3cee18537bbdd15726b51ede516e6e
parent633815c55bea0b49c5494a672c39fae4884719aa
image: fix compiling without CMD_FDT

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>
common/bootm.c
common/image-fdt.c