[coreboot-gerrit] New patch to review for coreboot: board-status: move board status back to $TMPDIR

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Thu Aug 13 07:58:10 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11224

-gerrit

commit 5202149a543f90ce2c4a793e40e3e67a96753bd8
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Thu Aug 13 07:57:26 2015 +0200

    board-status: move board status back to $TMPDIR
    
    Change-Id: I05a8c246384abfc954cfcf163a68cca71aa6b2f0
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 util/board_status/board_status.sh | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 14d6514..ee27bc0 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -211,7 +211,8 @@ fi
 
 # Results will be placed in a temporary location until we're ready to upload.
 # If the user does not wish to upload, results will remain in /tmp.
-tmpdir=$(mktemp -d coreboot_board_status.XXXXXXXX)
+tmpdir=$(mktemp -d --tmpdir coreboot_board_status.XXXXXXXX)
+tmpcfg=$(mktemp coreboot_config.XXXXXX)
 
 cbfstool_cmd="build/cbfstool"
 if test ! -x build/cbfstool; then
@@ -219,8 +220,11 @@ if test ! -x build/cbfstool; then
 fi
 test_cmd $LOCAL "$cbfstool_cmd"
 $cbfstool_cmd build/coreboot.rom extract -n config -f ${tmpdir}/config.txt
-cp ${tmpdir}/config.txt ${tmpdir}/config.short.txt
-yes "" | make DOTCONFIG=${tmpdir}/config.txt oldconfig
+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
 
 # Obtain board and revision info to form the directory structure:



More information about the coreboot-gerrit mailing list