From c57c9b688ba29ea6ef6cb05a25a245c002d53949 Mon Sep 17 00:00:00 2001 From: kaloz Date: Thu, 28 May 2009 09:49:40 +0000 Subject: renumber sibyte patches git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16126 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../linux/sibyte/patches/100-honuor_config_cmdline.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 target/linux/sibyte/patches/100-honuor_config_cmdline.patch (limited to 'target/linux/sibyte/patches/100-honuor_config_cmdline.patch') 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 */ -- cgit v1.2.3