aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshok Reddy Soma <ashok.reddy.soma@amd.com>2023-07-09 07:09:57 -0600
committerTom Rini <trini@konsulko.com>2023-07-14 12:53:27 -0400
commitb792395b6060dd86e6d096f7a800176043cb7460 (patch)
tree8d2f0a0983db3b9cf91bb89d0cce9efcfb559225
parentebfd71a0e9b1fcc58071bfb751369016e7e4440a (diff)
downloadu-boot-b792395b6060dd86e6d096f7a800176043cb7460.zip
u-boot-b792395b6060dd86e6d096f7a800176043cb7460.tar.gz
u-boot-b792395b6060dd86e6d096f7a800176043cb7460.tar.bz2
cmd: thordown: Add proper dependency for CMD_THOR_DOWNLOAD
When CONFIG_CMD_USB and CONFIG_USB are disabled some compilation errors are seen as below. cmd/thordown.o: in function `usb_gadget_initialize': include/linux/usb/gadget.h:981: undefined reference to `board_usb_init' cmd/thordown.o: in function `do_thor_down': cmd/thordown.c:68: undefined reference to `g_dnl_unregister' cmd/thordown.o: in function `usb_gadget_release': include/linux/usb/gadget.h:986: undefined reference to `board_usb_cleanup' cmd/thordown.o: in function `do_thor_down': cmd/thordown.c:41: undefined reference to `g_dnl_register' cmd/thordown.c:48: undefined reference to `thor_init' cmd/thordown.c:56: undefined reference to `thor_handle' gnu/aarch64/lin/aarch64-linux/bin/aarch64-linux-gnu-ld.bfd: line 4: 8485 Segmentation fault (core dumped) $CC --sysroot=$LIBC --no-warn-rwx-segment "$@" Makefile:1779: recipe for target 'u-boot' failed make: *** [u-boot] Error 139 make: *** Deleting file 'u-boot' Add dependency of CMD_USB for CONFIG_CMD_THOR_DOWNLOAD to fix the errors. Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
-rw-r--r--cmd/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 867a3d6..e1641bd 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -526,6 +526,7 @@ config CMD_SPL_WRITE_SIZE
config CMD_THOR_DOWNLOAD
bool "thor - TIZEN 'thor' download"
+ depends on CMD_USB
select DFU
help
Implements the 'thor' download protocol. This is a way of