1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-14 13:11:53 +02:00
openwrt-xburst/target/linux/sibyte/patches/000-honuor_config_cmdline.patch
kaloz 070fb549fa add a few fixes for the sibyte target
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15839 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-14 10:17:12 +00:00

15 lines
452 B
Diff

--- 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 */