Skip to content
Snippets Groups Projects
Commit ab948cd2 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Simon Glass
Browse files

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 452bc121
No related branches found
No related tags found
No related merge requests found
...@@ -334,7 +334,7 @@ config SPL_OF_LIBFDT ...@@ -334,7 +334,7 @@ config SPL_OF_LIBFDT
config FDT_FIXUP_PARTITIONS config FDT_FIXUP_PARTITIONS
bool "overwrite MTD partitions in DTS through defined in 'mtdparts'" bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
depends on OF_LIBFDT depends on OF_LIBFDT
default n depends on CMD_MTDPARTS
help help
Allow overwriting defined partitions in the device tree blob Allow overwriting defined partitions in the device tree blob
using partition info defined in the 'mtdparts' environment using partition info defined in the 'mtdparts' environment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment