mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 12:09:58 +00:00
53735f0b82
Fix common.rc to avoid passing an empty --target-list= option to configure. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1465224417-141321-3-git-send-email-pbonzini@redhat.com Signed-off-by: Fam Zheng <famz@redhat.com>
33 lines
680 B
Bash
Executable File
33 lines
680 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Common routines for docker test scripts.
|
|
#
|
|
# Copyright (c) 2016 Red Hat Inc.
|
|
#
|
|
# Authors:
|
|
# Fam Zheng <famz@redhat.com>
|
|
#
|
|
# This work is licensed under the terms of the GNU GPL, version 2
|
|
# or (at your option) any later version. See the COPYING file in
|
|
# the top-level directory.
|
|
|
|
requires()
|
|
{
|
|
for c in $@; do
|
|
if ! echo "$FEATURES" | grep -wq -e "$c"; then
|
|
echo "Prerequisite '$c' not present, skip"
|
|
exit 0
|
|
fi
|
|
done
|
|
}
|
|
|
|
build_qemu()
|
|
{
|
|
$QEMU_SRC/configure \
|
|
${TARGET_LIST:+"--target-list=${TARGET_LIST}"} \
|
|
--prefix="$PWD/install" \
|
|
$EXTRA_CONFIGURE_OPTS \
|
|
"$@"
|
|
make $MAKEFLAGS
|
|
}
|