diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-07-20 11:04:09 +0900 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-07-26 14:20:27 -0600 |
commit | ab948cd21d25ba2f54832fc98a59eea90e680eba (patch) | |
tree | 26768f4139dbd01d486a2b3a3984c913c06d3113 /lib/Kconfig | |
parent | 452bc121027df6bc5ad59e25db8c6b0a4ecbe8a4 (diff) |
fdt_support: make FDT_FIXUP_PARTITIONS depend on CMD_MTDPARTS
fdt_fixup_mtdparts() calls mtdparts_init() and device_find(),
which are defined in cmd/mtdparts.c
The combination of FDT_FIXUP_PARTITIONS=y and CMD_MTDPARTS=n
emits the following link error:
common/fdt_support.c:903: undefined reference to `mtdparts_init'
common/fdt_support.c:914: undefined reference to `device_find'
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/Kconfig')
-rw-r--r-- | lib/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index a77bf1c688..622f3c26c3 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -334,7 +334,7 @@ config SPL_OF_LIBFDT config FDT_FIXUP_PARTITIONS bool "overwrite MTD partitions in DTS through defined in 'mtdparts'" depends on OF_LIBFDT - default n + depends on CMD_MTDPARTS help Allow overwriting defined partitions in the device tree blob using partition info defined in the 'mtdparts' environment |