diff mbox

mambo: Allow setting the Linux command line from the environment

Message ID 1491357619-24902-1-git-send-email-mpe@ellerman.id.au
State Accepted
Headers show

Commit Message

Michael Ellerman April 5, 2017, 2 a.m. UTC
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>
---
 external/mambo/skiboot.tcl | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Stewart Smith April 7, 2017, 5:53 a.m. UTC | #1
Michael Ellerman <mpe@ellerman.id.au> writes:
> 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>
> ---

Thanks, merged to master as of 0adcaba138fc146ea746a758814b9e487c8caee6
diff mbox

Patch

diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index 35a8e37b0dd6..cffac3283abe 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