diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2017-04-05 12:00:19 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-04-07 14:10:32 +1000 |
commit | 0adcaba138fc146ea746a758814b9e487c8caee6 (patch) | |
tree | 68c227eadd69ccf312cee59d7dd9aa2c5cb3cffe /external | |
parent | 8c9b25349d69dec31062e93b831c676b68a7a7a5 (diff) | |
download | skiboot-0adcaba138fc146ea746a758814b9e487c8caee6.zip skiboot-0adcaba138fc146ea746a758814b9e487c8caee6.tar.gz skiboot-0adcaba138fc146ea746a758814b9e487c8caee6.tar.bz2 |
mambo: Allow setting the Linux command line from the environment
For automated testing it's helpful to be able to set the Linux command
line via an environment variable.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/mambo/skiboot.tcl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl index 35a8e37..cffac32 100644 --- a/external/mambo/skiboot.tcl +++ b/external/mambo/skiboot.tcl @@ -31,6 +31,8 @@ if { ![info exists env(SKIBOOT_ZIMAGE)] } { } mconfig payload PAYLOAD $env(SKIBOOT_ZIMAGE) +mconfig linux_cmdline LINUX_CMDLINE "" + # Paylod: Memory location for a Linux style ramdisk/initrd mconfig payload_addr PAYLOAD_ADDR 0x20000000; @@ -311,7 +313,9 @@ if { [info exists env(SKIBOOT_ENABLE_MAMBO_STB)] } { # Kernel command line args, appended to any from the device tree # e.g.: of::set_bootargs "xmon" -of::set_bootargs "" +# +# Can be set from the environment by setting LINUX_CMDLINE. +of::set_bootargs $mconf(linux_cmdline) # Load images |