1 # Copyright (c) 2021 Red Hat, Inc.
4 # Cleber Rosa <crosa@redhat.com>
6 # This work is licensed under the terms of the GNU GPL, version 2 or
7 # later. See the COPYING file in the top-level directory.
9 # This is an ansible playbook file. Run it to set up systems with the
10 # environment needed to build QEMU.
12 - name: Installation of basic packages to build QEMU
15 - name: Check for suitable ansible version
16 delegate_to: localhost
19 - '((ansible_version.major == 2) and (ansible_version.minor >= 8)) or (ansible_version.major >= 3)'
20 msg: "Unsuitable ansible version, please use version 2.8.0 or later"
22 - name: Add armhf foreign architecture to aarch64 hosts
23 command: dpkg --add-architecture armhf
25 - ansible_facts['distribution'] == 'Ubuntu'
26 - ansible_facts['architecture'] == 'aarch64'
27 - ansible_facts['distribution_version'] == '20.04'
29 - name: Update apt cache / upgrade packages via apt
34 - ansible_facts['distribution'] == 'Ubuntu'
36 - name: Install basic packages to build QEMU on Ubuntu 20.04
74 - libspice-protocol-dev
84 - python3-sphinx-rtd-theme
90 - ansible_facts['distribution'] == 'Ubuntu'
92 - name: Install packages to build QEMU on Ubuntu 20.04 on non-s390x
99 - ansible_facts['distribution'] == 'Ubuntu'
100 - ansible_facts['architecture'] != 's390x'
102 - name: Install basic packages to build QEMU on Ubuntu 20.04
105 # Originally from tests/docker/dockerfiles/ubuntu2004.docker
112 - ansible_facts['distribution'] == 'Ubuntu'
113 - ansible_facts['distribution_version'] == '20.04'
115 - name: Install armhf cross-compile packages to build QEMU on AArch64 Ubuntu 20.04
118 - binutils-arm-linux-gnueabihf
119 - gcc-arm-linux-gnueabihf
123 - libglib2.0-dev:armhf
126 - libpixman-1-dev:armhf
129 - ansible_facts['distribution'] == 'Ubuntu'
130 - ansible_facts['distribution_version'] == '20.04'
131 - ansible_facts['architecture'] == 'aarch64'
133 - name: Install basic packages to build QEMU on EL8
135 # This list of packages start with tests/docker/dockerfiles/centos8.docker
136 # but only include files that are common to all distro variants and present
137 # in the standard repos (no add-ons)
163 - systemtap-sdt-devel
168 - ansible_facts['distribution_file_variety'] == 'RedHat'
169 - ansible_facts['distribution_version'] == '8'