summaryrefslogtreecommitdiffstats
path: root/target/linux/sibyte/patches/000-honuor_config_cmdline.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/sibyte/patches/000-honuor_config_cmdline.patch')
-rw-r--r--target/linux/sibyte/patches/000-honuor_config_cmdline.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/sibyte/patches/000-honuor_config_cmdline.patch b/target/linux/sibyte/patches/000-honuor_config_cmdline.patch
new file mode 100644
index 0000000000..b2af916442
--- /dev/null
+++ b/target/linux/sibyte/patches/000-honuor_config_cmdline.patch
@@ -0,0 +1,14 @@
+--- a/arch/mips/sibyte/cfe/setup.c
++++ b/arch/mips/sibyte/cfe/setup.c
+@@ -293,7 +293,11 @@ void __init prom_init(void)
+ * It's OK for direct boot to not provide a
+ * command line
+ */
++#ifdef CONFIG_CMDLINE
++ strlcpy(arcs_cmdline, CONFIG_CMDLINE, COMMAND_LINE_SIZE);
++#else
+ strcpy(arcs_cmdline, "root=/dev/ram0 ");
++#endif
+ } else {
+ /* The loader should have set the command line */
+ /* too early for panic to do any good */