1.cross_system_build_job:
2  stage: build
3  image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
4  timeout: 80m
5  script:
6    - mkdir build
7    - cd build
8    - PKG_CONFIG_PATH=$PKG_CONFIG_PATH
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 sh4-softmmu xtensa-softmmu"
13    - make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS
14
15# Job to cross-build specific accelerators.
16#
17# Set the $ACCEL variable to select the specific accelerator (default to
18# KVM), and set extra options (such disabling other accelerators) via the
19# $EXTRA_CONFIGURE_OPTS variable.
20.cross_accel_build_job:
21  stage: build
22  image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
23  timeout: 30m
24  script:
25    - mkdir build
26    - cd build
27    - PKG_CONFIG_PATH=$PKG_CONFIG_PATH
28      ../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS
29        --disable-tools --enable-${ACCEL:-kvm} $EXTRA_CONFIGURE_OPTS
30    - make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS
31
32.cross_user_build_job:
33  stage: build
34  image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
35  script:
36    - mkdir build
37    - cd build
38    - PKG_CONFIG_PATH=$PKG_CONFIG_PATH
39      ../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS
40        --disable-system
41    - make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS
42