aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-stm32mp
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2024-02-07 14:12:01 +0100
committerPatrice Chotard <patrice.chotard@foss.st.com>2024-04-19 10:27:18 +0200
commitf226ec1e492740b900b39691517f534d60c1631c (patch)
tree104f4fe491e38834fe2e9400d7186d7460690dd4 /arch/arm/mach-stm32mp
parent97b34f6ace539c9c16eb8565f8b58730848ba97a (diff)
downloadu-boot-f226ec1e492740b900b39691517f534d60c1631c.zip
u-boot-f226ec1e492740b900b39691517f534d60c1631c.tar.gz
u-boot-f226ec1e492740b900b39691517f534d60c1631c.tar.bz2
stm32mp: cmd_stm32prog: add dependencies with USB_GADGET_DOWNLOAD
This patch avoids compilation issue when CONFIG_USB_GADGET is deactivated in defconfig, with undefined reference to run_usb_dnl_gadget and to g_dnl_set_product. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@foundries.io> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'arch/arm/mach-stm32mp')
-rw-r--r--arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig b/arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig
index 8f91db4..5892762 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig
@@ -17,6 +17,7 @@ config CMD_STM32PROG
config CMD_STM32PROG_USB
bool "support stm32prog over USB"
depends on CMD_STM32PROG
+ depends on USB_GADGET_DOWNLOAD
default y
help
activate the command "stm32prog usb" for STM32MP soc family