[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 07/18] scripts/ci: add build env rules for aarch32 on aarch64
From: |
Alex Bennée |
Subject: |
[PULL 07/18] scripts/ci: add build env rules for aarch32 on aarch64 |
Date: |
Tue, 1 Mar 2022 09:47:04 +0000 |
At least the current crop of Aarch64 HW can support running 32 bit EL0
code. Before we can build and test we need a minimal set of packages
installed. We can't use "apt build-dep" because it currently gets
confused trying to keep two sets of build-deps installed at once.
Instead we install a minimal set of libraries that will allow us to
continue.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220225172021.3493923-8-alex.bennee@linaro.org>
diff --git a/scripts/ci/setup/build-environment.yml
b/scripts/ci/setup/build-environment.yml
index 599896cc5b..9182e0c253 100644
--- a/scripts/ci/setup/build-environment.yml
+++ b/scripts/ci/setup/build-environment.yml
@@ -19,6 +19,13 @@
- '((ansible_version.major == 2) and (ansible_version.minor >= 8))
or (ansible_version.major >= 3)'
msg: "Unsuitable ansible version, please use version 2.8.0 or later"
+ - name: Add armhf foreign architecture to aarch64 hosts
+ command: dpkg --add-architecture armhf
+ when:
+ - ansible_facts['distribution'] == 'Ubuntu'
+ - ansible_facts['architecture'] == 'aarch64'
+ - ansible_facts['distribution_version'] == '20.04'
+
- name: Update apt cache / upgrade packages via apt
apt:
update_cache: yes
@@ -115,6 +122,24 @@
- ansible_facts['distribution'] == 'Ubuntu'
- ansible_facts['distribution_version'] == '20.04'
+ - name: Install armhf cross-compile packages to build QEMU on AArch64
Ubuntu 20.04
+ package:
+ name:
+ - binutils-arm-linux-gnueabihf
+ - gcc-arm-linux-gnueabihf
+ - libblkid-dev:armhf
+ - libc6-dev:armhf
+ - libffi-dev:armhf
+ - libglib2.0-dev:armhf
+ - libmount-dev:armhf
+ - libpcre2-dev:armhf
+ - libpixman-1-dev:armhf
+ - zlib1g-dev:armhf
+ when:
+ - ansible_facts['distribution'] == 'Ubuntu'
+ - ansible_facts['distribution_version'] == '20.04'
+ - ansible_facts['architecture'] == 'aarch64'
+
- name: Install basic packages to build QEMU on EL8
dnf:
# This list of packages start with
tests/docker/dockerfiles/centos8.docker
--
2.30.2
- [PULL 06/18] tests/docker: introduce debian-riscv64-test-cross, (continued)
- [PULL 06/18] tests/docker: introduce debian-riscv64-test-cross, Alex Bennée, 2022/03/01
- [PULL 10/18] tests/tcg/ppc64: clean-up handling of byte-reverse, Alex Bennée, 2022/03/01
- [PULL 12/18] tests/tcg: add sha512 test, Alex Bennée, 2022/03/01
- [PULL 14/18] travis.yml: Update the s390x jobs to Ubuntu Focal, Alex Bennée, 2022/03/01
- [PULL 09/18] gitlab: add a new aarch32 custom runner definition, Alex Bennée, 2022/03/01
- [PULL 15/18] gitlab: upgrade the job definition for s390x to 20.04, Alex Bennée, 2022/03/01
- [PULL 16/18] tests/tcg: completely disable threadcount for sh4, Alex Bennée, 2022/03/01
- [PULL 13/18] tests/tcg: add vectorised sha512 versions, Alex Bennée, 2022/03/01
- [PULL 07/18] scripts/ci: add build env rules for aarch32 on aarch64,
Alex Bennée <=
- [PULL 17/18] semihosting/arm-compat: replace heuristic for softmmu SYS_HEAPINFO, Alex Bennée, 2022/03/01
- [PULL 18/18] tests/tcg: port SYS_HEAPINFO to a system test, Alex Bennée, 2022/03/01
- [PULL 11/18] tests/tcg: build sha1-vector with O3 and compare, Alex Bennée, 2022/03/01
- Re: [PULL 00/18] testing and semihosting updates, Peter Maydell, 2022/03/02