board-status: move board status back to $TMPDIR
Change-Id: I05a8c246384abfc954cfcf163a68cca71aa6b2f0 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/11224 Tested-by: build bot (Jenkins) Reviewed-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
This commit is contained in:
parent
608f9b5b16
commit
aa7dcef494
|
@ -211,7 +211,8 @@ fi
|
||||||
|
|
||||||
# Results will be placed in a temporary location until we're ready to upload.
|
# 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.
|
# 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"
|
cbfstool_cmd="build/cbfstool"
|
||||||
if test ! -x build/cbfstool; then
|
if test ! -x build/cbfstool; then
|
||||||
|
@ -219,8 +220,11 @@ if test ! -x build/cbfstool; then
|
||||||
fi
|
fi
|
||||||
test_cmd $LOCAL "$cbfstool_cmd"
|
test_cmd $LOCAL "$cbfstool_cmd"
|
||||||
$cbfstool_cmd build/coreboot.rom extract -n config -f ${tmpdir}/config.txt
|
$cbfstool_cmd build/coreboot.rom extract -n config -f ${tmpdir}/config.txt
|
||||||
cp ${tmpdir}/config.txt ${tmpdir}/config.short.txt
|
mv ${tmpdir}/config.txt ${tmpdir}/config.short.txt
|
||||||
yes "" | make DOTCONFIG=${tmpdir}/config.txt oldconfig
|
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 build/coreboot.rom print > ${tmpdir}/cbfs.txt
|
||||||
|
|
||||||
# Obtain board and revision info to form the directory structure:
|
# Obtain board and revision info to form the directory structure:
|
||||||
|
|
Loading…
Reference in New Issue