summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-11-05 00:29:11 +0100
committerTom Rini <trini@konsulko.com>2021-01-16 11:58:49 -0500
commit622178d923d5e5767d33df242a09bc7dae500976 (patch)
tree0add22ab9699801bc3ad483fe028d029c8e58fed /cmd
parentaf033ec8b4ebe28dd5e45b19f3abe213b1f4def3 (diff)
downloadu-boot-622178d923d5e5767d33df242a09bc7dae500976.tar.gz
u-boot-622178d923d5e5767d33df242a09bc7dae500976.tar.xz
u-boot-622178d923d5e5767d33df242a09bc7dae500976.zip
cmd: CMD_CPU depends on CPU
Compiling with CONFIG_CMD_CPU=y and CONFIG_CPU=n fails with: aarch64-linux-gnu-ld.bfd: cmd/built-in.o: in function `print_cpu_list': /home/user/u-boot/cmd/cpu.c:34: undefined reference to `cpu_get_desc' aarch64-linux-gnu-ld.bfd: /home/user/u-boot/cmd/cpu.c:39: undefined reference to `cpu_get_info' Segmentation fault (core dumped) make: *** [Makefile:1757: u-boot] Error 139 make: *** Deleting file 'u-boot' See error report in https://stackoverflow.com/questions/64678347. Add the missing build dependency. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 0107c0fa3e..1b53e5be5a 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -122,6 +122,7 @@ config CMD_CONSOLE
config CMD_CPU
bool "cpu"
+ depends on CPU
help
Print information about available CPUs. This normally shows the
number of CPUs, type (e.g. manufacturer, architecture, product or