There's an unconditional dependency from the mass-storage command onto the mass-storage function through a call to fsg_main_thread(...). If USB_FUNCTION_MASS_STORAGE is not enabled, this will result in link-errors when CMD_USB_MASS_STORAGE is enabled.
Let's introduce an 'imply' (I didn't want to make this a 'select', as these were independent in the past, as well) relationship to model this dependency. Signed-off-by: Philipp Tomsich <[email protected]> --- Changes in v2: None cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 6758db1..a60a568 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -667,6 +667,7 @@ config CMD_DFU config CMD_USB_MASS_STORAGE bool "UMS usb mass storage" + imply USB_FUNCTION_MASS_STORAGE help USB mass storage support -- 2.1.4 _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

