[coreboot-gerrit] Patch set updated for coreboot: board_status.sh: Allow user to override coreboot image path

David Hendricks (dhendrix@chromium.org) gerrit at coreboot.org
Thu Nov 19 23:31:24 CET 2015


David Hendricks (dhendrix at chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/12489

-gerrit

commit 71adb7cb7f7a67211a7ac9c2709d5212066790e7
Author: David Hendricks <dhendrix at chromium.org>
Date:   Thu Nov 19 13:04:27 2015 -0800

    board_status.sh: Allow user to override coreboot image path
    
    Some users may wish to run this script using a coreboot image
    that does get built in the usual build/ directory, for example
    if abuild is used to generate the image.
    
    Change-Id: I7e98780f8b7b57ebbf3babd6a289f0e4fd4103d8
    Signed-off-by: David Hendricks <dhendrix at chromium.org>
---
 util/board_status/board_status.sh | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index ee27bc0..14a8214 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -10,6 +10,7 @@ EXIT_SUCCESS=0
 EXIT_FAILURE=1
 
 # Stuff from command-line switches
+COREBOOT_IMAGE="build/coreboot.rom"
 REMOTE_HOST=""
 CLOBBER_OUTPUT=0
 UPLOAD_RESULTS=0
@@ -168,6 +169,8 @@ Options
         Show this message.
     -C
         Clobber temporary output when finished. Useful for debugging.
+    -i  <image>
+        Path to coreboot image (Default is $COREBOOT_IMAGE).
     -r  <host>
         Obtain machine information from remote host (using ssh).
     -s  </dev/xxx>
@@ -179,7 +182,7 @@ Options
 "
 }
 
-while getopts "Chr:s:S:u" opt; do
+while getopts "Chi:r:s:S:u" opt; do
 	case "$opt" in
 		h)
 			show_help
@@ -188,6 +191,9 @@ while getopts "Chr:s:S:u" opt; do
 		C)
 			CLOBBER_OUTPUT=1
 			;;
+		i)
+			COREBOOT_IMAGE="$OPTARG"
+			;;
 		r)
 			REMOTE_HOST="$OPTARG"
 			;;
@@ -219,13 +225,13 @@ if test ! -x build/cbfstool; then
 	make -C util/cbfstool/ && cp util/cbfstool/cbfstool build/cbfstool
 fi
 test_cmd $LOCAL "$cbfstool_cmd"
-$cbfstool_cmd build/coreboot.rom extract -n config -f ${tmpdir}/config.txt
+$cbfstool_cmd $COREBOOT_IMAGE extract -n config -f ${tmpdir}/config.txt
 mv ${tmpdir}/config.txt ${tmpdir}/config.short.txt
 cp ${tmpdir}/config.short.txt ${tmpcfg}
 yes "" | make DOTCONFIG=${tmpcfg} oldconfig 2>/dev/null >/dev/null
 mv ${tmpcfg} ${tmpdir}/config.txt
 rm -f ${tmpcfg}.old
-$cbfstool_cmd build/coreboot.rom print > ${tmpdir}/cbfs.txt
+$cbfstool_cmd $COREBOOT_IMAGE print > ${tmpdir}/cbfs.txt
 
 # Obtain board and revision info to form the directory structure:
 # <vendor>/<board>/<revision>/<timestamp>



More information about the coreboot-gerrit mailing list