cmd: fastboot: Rework fastboot dependency
Fastboot need a bunch of options to be operating properly, such as the g_dnl gadget, the fastboot command, and some options that make sense. Since fastboot is now part of Kconfig, make sure we have them right. That will also reduce the boilerplate in the defconfigs. Reviewed-by: Łukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
@@ -3,11 +3,16 @@ comment "FASTBOOT"
|
||||
menuconfig FASTBOOT
|
||||
bool "Fastboot support"
|
||||
depends on USB_GADGET
|
||||
default y if ARCH_SUNXI && USB_MUSB_GADGET
|
||||
|
||||
if FASTBOOT
|
||||
|
||||
config USB_FUNCTION_FASTBOOT
|
||||
bool "Enable USB fastboot gadget"
|
||||
default y
|
||||
select USB_GADGET_DOWNLOAD
|
||||
imply ANDROID_BOOT_IMAGE
|
||||
imply CMD_FASTBOOT
|
||||
help
|
||||
This enables the USB part of the fastboot gadget.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user