]>
Commit | Line | Data |
---|---|---|
3568f98c FZ |
1 | #!/bin/sh |
2 | # | |
3 | # Common routines for docker test scripts. | |
4 | # | |
5 | # Copyright (c) 2016 Red Hat Inc. | |
6 | # | |
7 | # Authors: | |
8 | # Fam Zheng <[email protected]> | |
9 | # | |
10 | # This work is licensed under the terms of the GNU GPL, version 2 | |
11 | # or (at your option) any later version. See the COPYING file in | |
12 | # the top-level directory. | |
13 | ||
14 | requires() | |
15 | { | |
16 | for c in $@; do | |
17 | if ! echo "$FEATURES" | grep -wq -e "$c"; then | |
18 | echo "Prerequisite '$c' not present, skip" | |
19 | exit 0 | |
20 | fi | |
21 | done | |
22 | } | |
23 | ||
24 | build_qemu() | |
25 | { | |
26 | $QEMU_SRC/configure \ | |
53735f0b | 27 | ${TARGET_LIST:+"--target-list=${TARGET_LIST}"} \ |
3568f98c | 28 | --prefix="$PWD/install" \ |
35e0f959 | 29 | $EXTRA_CONFIGURE_OPTS \ |
3568f98c FZ |
30 | "$@" |
31 | make $MAKEFLAGS | |
32 | } |