diff --git a/commands/Kconfig b/commands/Kconfig index 08b3af8..7784966 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -1869,7 +1869,7 @@ 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 9971036..84102f3 100644 --- a/commands/smc.c +++ b/commands/smc.c @@ -97,6 +97,11 @@ 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':