crossbuild-template.yml (1725B)
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 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]*)"; 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 stage: build 28 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest 29 timeout: 30m 30 script: 31 - mkdir build 32 - cd build 33 - PKG_CONFIG_PATH=$PKG_CONFIG_PATH 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 stage: build 40 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest 41 script: 42 - mkdir build 43 - cd build 44 - PKG_CONFIG_PATH=$PKG_CONFIG_PATH 45 ../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS 46 --disable-system 47 - make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS