travis: Setup QEMU_VERSION as variable
authorMichal Simek <michal.simek@xilinx.com>
Wed, 16 Jan 2019 14:18:43 +0000 (15:18 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 18 Jan 2019 18:40:34 +0000 (13:40 -0500)
This change enables setting up specific Qemu version or sha1 for new
targets which are added after (current) v3.0.0 version.
This changes is preparation step for adding new Xilinx Versal Virt
platform which was merge after v3.0.0.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
.travis.yml

index bb7f3c078bf2d5000cc96f2a58e908280eadbfd6..70af7a4bbad960f1262b498d205404da7cafda73 100644 (file)
@@ -63,6 +63,7 @@ env:
     - BUILD_DIR=build
     - HOSTCC="cc"
     - HOSTCXX="c++"
+    - QEMU_VERSION="v3.0.0"
 
 before_script:
   # install toolchains based on TOOLCHAIN} variable
@@ -97,7 +98,7 @@ before_script:
        git clone git://git.qemu.org/qemu.git /tmp/qemu;
        pushd /tmp/qemu;
        git submodule update --init dtc &&
-       git checkout v3.0.0 &&
+       git checkout ${QEMU_VERSION} &&
        ./configure --prefix=/tmp/qemu-install --target-list=${QEMU_TARGET} &&
        make -j4 all install;
        popd;