mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-28 05:50:37 +00:00
24e0131f37
This provides a basic Debian install with access to the emdebian cross compilers. The debian-armhf-cross and debian-arm64-cross targets build on the basic Debian image to allow cross compiling to those targets. A new environment variable (QEMU_CONFIGURE_OPTS) is set as part of the docker container and passed to the build to specify the --cross-prefix. The user still calls the build in the usual way, for example: make docker-test-build@debian-arm64-cross \ TARGET_LIST="aarch64-softmmu,aarch64-linux-user" Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Fam Zheng <famz@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20170220105139.21581-3-alex.bennee@linaro.org> Signed-off-by: Fam Zheng <famz@redhat.com>
39 lines
878 B
Bash
Executable File
39 lines
878 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.
|
|
|
|
BUILD_DIR=/var/tmp/qemu-build
|
|
mkdir $BUILD_DIR
|
|
|
|
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()
|
|
{
|
|
config_opts="--enable-werror \
|
|
${TARGET_LIST:+--target-list=${TARGET_LIST}} \
|
|
--prefix=$PWD/install \
|
|
$QEMU_CONFIGURE_OPTS $EXTRA_CONFIGURE_OPTS \
|
|
$@"
|
|
echo "Configure options:"
|
|
echo $config_opts
|
|
$QEMU_SRC/configure $config_opts
|
|
make $MAKEFLAGS
|
|
}
|