summaryrefslogtreecommitdiffstats
path: root/target/linux/sibyte/patches/100-honuor_config_cmdline.patch
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-05-28 09:49:40 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-05-28 09:49:40 +0000
commitc57c9b688ba29ea6ef6cb05a25a245c002d53949 (patch)
tree6a5db4f18cb498a20c8944817d3184d7a43e251f /target/linux/sibyte/patches/100-honuor_config_cmdline.patch
parentd97cdd4da608c9870471c33f17a1da34c2a2ecc3 (diff)
renumber sibyte patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16126 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/sibyte/patches/100-honuor_config_cmdline.patch')
-rw-r--r--target/linux/sibyte/patches/100-honuor_config_cmdline.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/sibyte/patches/100-honuor_config_cmdline.patch b/target/linux/sibyte/patches/100-honuor_config_cmdline.patch
new file mode 100644
index 000000000..b2af91644
--- /dev/null
+++ b/target/linux/sibyte/patches/100-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 */