From: Heinrich Schuchardt Date: Wed, 4 Nov 2020 23:29:11 +0000 (+0100) Subject: cmd: CMD_CPU depends on CPU X-Git-Tag: baikal/mips/sdk5.9~34^2^2~242^2~32 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=182559ecd4bdc5257b6eb4376d6b2e6f93d7fad1;p=uboot.git 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 Reviewed-by: Simon Glass --- 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