summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>2022-01-17 10:16:50 +0100
committerTom Rini <trini@konsulko.com>2022-01-24 10:35:10 -0500
commit480245cf273dfd14536dc2b30aff0a733b71a1ed (patch)
tree3ff70c21854c4a1bdbf60414d6fead53c0982049 /cmd
parentc28f2499952a78609e80d3b1f7aca9b0aab8d6d6 (diff)
cmd: Add Kconfig option for multiprocessor cmds
Add Kconfig option(CONFIG_CMD_MP) to enable or disable multiprocessor commands. Compile cmd/mp.c based on CONFIG_CMD_MP. Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig11
-rw-r--r--cmd/Makefile2
2 files changed, 7 insertions, 6 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 84ede90eee..5e25e45fd2 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1827,12 +1827,13 @@ config CMD_SLEEP
help
Delay execution for some time
-config MP
- bool "support for multiprocessor"
+config CMD_MP
+ bool "support for multiprocessor commands"
+ depends on MP
+ default y
help
- This provides an option to brinup
- different processors in multiprocessor
- cases.
+ This enables commands to bringup different processors
+ in multiprocessor cases.
config CMD_TIMER
bool "timer"
diff --git a/cmd/Makefile b/cmd/Makefile
index fb133e3703..166c652d98 100644
--- a/cmd/Makefile
+++ b/cmd/Makefile
@@ -100,7 +100,7 @@ obj-$(CONFIG_CMD_MDIO) += mdio.o
obj-$(CONFIG_CMD_SLEEP) += sleep.o
obj-$(CONFIG_CMD_MMC) += mmc.o
obj-$(CONFIG_CMD_OPTEE_RPMB) += optee_rpmb.o
-obj-$(CONFIG_MP) += mp.o
+obj-$(CONFIG_CMD_MP) += mp.o
obj-$(CONFIG_CMD_MTD) += mtd.o
obj-$(CONFIG_CMD_MTDPARTS) += mtdparts.o
obj-$(CONFIG_CMD_CLONE) += clone.o