diff options
Diffstat (limited to 'common/system.c')
-rw-r--r-- | common/system.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/system.c b/common/system.c index 0ca7b33643..5e26ba3e43 100644 --- a/common/system.c +++ b/common/system.c @@ -996,6 +996,7 @@ DECLARE_SAFE_CONSOLE_COMMAND(version, command_version, NULL, "Print versions"); +#ifdef CONFIG_CMD_SYSJUMP static int command_sysjump(int argc, char **argv) { uint32_t addr; @@ -1035,6 +1036,7 @@ static int command_sysjump(int argc, char **argv) DECLARE_CONSOLE_COMMAND(sysjump, command_sysjump, "[RO | RW | addr | disable]", "Jump to a system image or address"); +#endif static int command_reboot(int argc, char **argv) { @@ -1079,7 +1081,7 @@ DECLARE_SAFE_CONSOLE_COMMAND(syslock, command_system_lock, NULL, "Lock the system, even if WP is disabled"); -#ifdef CONFIG_LOW_POWER_IDLE +#if defined(CONFIG_LOW_POWER_IDLE) && defined(CONFIG_CMD_SLEEPMASK) /** * Modify and print the sleep mask which controls access to deep sleep * mode in the idle task. |