docker: Build in a clean directory

Currently we configure and build under "$QEMU_SRC/tests/docker" which is
dubious. Create a fixed directory (to be friendly to ccache) and change
to there before calling build_qemu.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <1475047892-11955-1-git-send-email-famz@redhat.com>
This commit is contained in:
Fam Zheng 2016-09-28 15:31:32 +08:00
parent 664ee76891
commit c16fe84f07
5 changed files with 11 additions and 0 deletions

View file

@ -11,6 +11,9 @@
# or (at your option) any later version. See the COPYING file in
# the top-level directory.
BUILD_DIR=/var/tmp/qemu-build
mkdir $BUILD_DIR
requires()
{
for c in $@; do