aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sibyte/patches/000-honuor_config_cmdline.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2009-05-14 10:17:12 +0000
committerImre Kaloz <kaloz@openwrt.org>2009-05-14 10:17:12 +0000
commitf75c2b26445e4231c15b7735974f692facb0daa9 (patch)
tree4043607fe4a82879b83bd4ab0ce53a4f645692e9 /target/linux/sibyte/patches/000-honuor_config_cmdline.patch
parent464f00453a75b3b6d0b786d985f6a67b1e44267b (diff)
downloadupstream-f75c2b26445e4231c15b7735974f692facb0daa9.tar.gz
upstream-f75c2b26445e4231c15b7735974f692facb0daa9.tar.bz2
upstream-f75c2b26445e4231c15b7735974f692facb0daa9.zip
add a few fixes for the sibyte target
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15839 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 */