spl: mmc: Rename spl_boot_mode() to spl_mmc_boot_mode()
[oweals/u-boot.git] / common / cli.c
index 7ffe902b88dd13c06d67035a3eac91047a9aeee5..38bba17585ca5a56970ad61317d12408833cd657 100644 (file)
@@ -71,6 +71,13 @@ int run_command_repeatable(const char *cmd, int flag)
        return 0;
 #endif
 }
+#else
+__weak int board_run_command(const char *cmdline)
+{
+       printf("## Commands are disabled. Please enable CONFIG_CMDLINE.\n");
+
+       return 1;
+}
 #endif /* CONFIG_CMDLINE */
 
 int run_command_list(const char *cmd, int len, int flag)