summaryrefslogtreecommitdiffstats
path: root/commands/smc.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/smc.c')
-rw-r--r--commands/smc.c5
1 files changed, 5 insertions, 0 deletions
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':