1.cross_system_build_job:
2  extends: .base_job_template
3  stage: build
4  image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
5  timeout: 80m
6  script:
7    - mkdir build
8    - cd build
9    - ../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS
10        --disable-user --target-list-exclude="arm-softmmu cris-softmmu
11          i386-softmmu microblaze-softmmu mips-softmmu mipsel-softmmu
12          mips64-softmmu ppc-softmmu riscv32-softmmu sh4-softmmu
13          sparc-softmmu xtensa-softmmu $CROSS_SKIP_TARGETS"
14    - make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS
15    - if grep -q "EXESUF=.exe" config-host.mak;
16      then make installer;
17      version="$(git describe --match v[0-9]* 2>/dev/null || git rev-parse --short HEAD)";
18      mv -v qemu-setup*.exe qemu-setup-${version}.exe;
19      fi
20
21# Job to cross-build specific accelerators.
22#
23# Set the $ACCEL variable to select the specific accelerator (default to
24# KVM), and set extra options (such disabling other accelerators) via the
25# $EXTRA_CONFIGURE_OPTS variable.
26.cross_accel_build_job:
27  extends: .base_job_template
28  stage: build
29  image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
30  timeout: 30m
31  script:
32    - mkdir build
33    - cd build
34    - ../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS
35        --disable-tools --enable-${ACCEL:-kvm} $EXTRA_CONFIGURE_OPTS
36    - make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS
37
38.cross_user_build_job:
39  extends: .base_job_template
40  stage: build
41  image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
42  script:
43    - mkdir build
44    - cd build
45    - ../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS
46        --disable-system --target-list-exclude="aarch64_be-linux-user
47          alpha-linux-user cris-linux-user m68k-linux-user microblazeel-linux-user
48          nios2-linux-user or1k-linux-user ppc-linux-user sparc-linux-user
49          xtensa-linux-user $CROSS_SKIP_TARGETS"
50    - make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS
51