diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/Kconfig | 2 | ||||
-rw-r--r-- | commands/smc.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/commands/Kconfig b/commands/Kconfig index 08b3af8b20..7784966282 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -1869,7 +1869,7 @@ config CMD_POWEROFF config CMD_SMC bool - depends on ARM_PSCI + depends on ARM_SMCCC prompt "PSCI test command" default CONFIG_ARM_PSCI_DEBUG help diff --git a/commands/smc.c b/commands/smc.c index 997103676e..84102f3249 100644 --- a/commands/smc.c +++ b/commands/smc.c @@ -97,6 +97,11 @@ static int do_smc(int argc, char *argv[]) while ((opt = getopt(argc, argv, "nic")) > 0) { switch (opt) { case 'n': + if (!IS_ENABLED(CONFIG_ARM_SECURE_MONITOR)) { + printf("secure monitor support not compiled in\n"); + return COMMAND_ERROR; + } + armv7_secure_monitor_install(); break; case 'i': |