From 1cc77e0f896d0230b6f031b7ccc8bc83be7520b6 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 19 Feb 2015 19:35:58 +0100 Subject: [PATCH] util/board_status/board_status.sh: Move comment to right position Fix up commit 1b6e7a67 (Updates to the board status script) adding this comment before running `cbfstool` by moving it to a more appropriate place. Change-Id: Iff79ed44e8e5ced55f2345407d1668858098ebe4 Signed-off-by: Paul Menzel Reviewed-on: http://review.coreboot.org/8491 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks --- util/board_status/board_status.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh index 49d2c73725..2cb4e5c792 100755 --- a/util/board_status/board_status.sh +++ b/util/board_status/board_status.sh @@ -213,8 +213,6 @@ fi # If the user does not wish to upload, results will remain in /tmp. tmpdir=$(mktemp -d --tmpdir coreboot_board_status.XXXXXXXX) -# Obtain board and revision info to form the directory structure: -# /// cbfstool_cmd="build/cbfstool" if test ! -x build/cbfstool; then make -C util/cbfstool/ && cp util/cbfstool/cbfstool build/cbfstool @@ -222,6 +220,9 @@ fi test_cmd $LOCAL "$cbfstool_cmd" $cbfstool_cmd build/coreboot.rom extract -n config -f ${tmpdir}/config.txt $cbfstool_cmd build/coreboot.rom print > ${tmpdir}/cbfs.txt + +# Obtain board and revision info to form the directory structure: +# /// mainboard_dir="$(grep CONFIG_MAINBOARD_DIR ${tmpdir}/config.txt | awk -F '"' '{ print $2 }')" vendor=$(echo "$mainboard_dir" | awk -F '/' '{ print $1 }') mainboard=$(echo "$mainboard_dir" | awk -F '/' '{ print $2 }')