]> git.dujemihanovic.xyz Git - u-boot.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)
commit596be5f3274ff674f526b77f75064f0495aff693
treeccb045332d3cee18537bbdd15726b51ede516e6e
parenteddb7278d790ceaa4a0e8c578240f999f11737b7
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