mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-26 12:39:33 +02:00
810339235c
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16470 3c298f89-4303-0410-b956-a3cf2f4a3e73
20 lines
604 B
Diff
20 lines
604 B
Diff
The SiByte platform code doesn't honor the CONFIG_CMDLINE kernel
|
|
option. This patch fixes this issue.
|
|
|
|
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
|
|
|
|
--- a/arch/mips/sibyte/common/cfe.c
|
|
+++ b/arch/mips/sibyte/common/cfe.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 */
|