From: Ben Collins Date: Wed, 07 Jan 2004 18:25:30 +0000 Subject: [BKPATCH]: Add option to define default command line to kernel. Message-Id: <20040107182529.GK17280@phunnypharm.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org You can import this changeset into BK by piping this whole message to: '| bk receive [path to repository]' or apply the patch as usual. ================================= ChangeSet@1.1482.1.10, 2004-01-07 12:29:51-05:00, bcollins@debian.org [SPARC64]: Add option to define default command line to kernel. Kconfig | 16 ++++++++++++++++ prom/bootstr.c | 4 ++++ 2 files changed, 20 insertions(+) diff -Nru a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig --- a/arch/sparc64/Kconfig Wed Jan 7 13:22:20 2004 +++ b/arch/sparc64/Kconfig Wed Jan 7 13:22:20 2004 @@ -489,6 +489,22 @@ machines. The watchdog timeout period is normally one minute but can be changed with a boot-time parameter. +config CMDLINE_BOOL + bool "Default bootloader kernel arguments" + +config CMDLINE + string "Initial kernel command string" + depends on CMDLINE_BOOL + default "console=ttyS0,9600 root=/dev/sda1" + help + Say Y here if you want to be able to pass default arguments to + the kernel. This will be overridden by the bootloader, if you + use one (such as SILO). This is most useful if you want to boot + a kernel from TFTP, and want default options to be available + with having them passed on the command line. + + NOTE: This option WILL override the PROM bootargs setting! + endmenu source "drivers/base/Kconfig" diff -Nru a/arch/sparc64/prom/bootstr.c b/arch/sparc64/prom/bootstr.c --- a/arch/sparc64/prom/bootstr.c Wed Jan 7 13:22:20 2004 +++ b/arch/sparc64/prom/bootstr.c Wed Jan 7 13:22:20 2004 @@ -21,6 +21,10 @@ char bootstr_buf[BARG_LEN]; } bootstr_info = { .bootstr_len = BARG_LEN, +#ifdef CONFIG_CMDLINE + .bootstr_valid = 1, + .bootstr_buf = CONFIG_CMDLINE, +#endif }; char * __init ================================= This BitKeeper patch contains the following changesets: 1.1482.1.10 ## Wrapped with gzip_uu ## M'XL( %Q._#\ [56:V_;-A3];/Z*N^3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M&E8BA4A_P#V?58;[D) -- Debian - http://www.debian.org/ Linux 1394 - http://www.linux1394.org/ Subversion - http://subversion.tigris.org/ WatchGuard - http://www.watchguard.com/