summaryrefslogtreecommitdiffstats
path: root/target/linux/sibyte/patches/100-honuor_config_cmdline.patch
blob: 1c3545f74f25dbdec154e26ec9133fa09be354e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 */