Skip to content

Commit

Permalink
mambo: Allow setting the Linux command line from the environment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mpe authored and stewartsmith committed Apr 7, 2017
1 parent 8c9b253 commit 0adcaba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion external/mambo/skiboot.tcl
Expand Up @@ -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;

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 0adcaba

Please sign in to comment.