qemu: arm: Rename QEMU arm* defconfig files
PATCH v3 1/2 qemu: arm: Rename QEMU arm* defconfig files
From: Bin Meng <[email protected]>
Other QEMU defconfig files use a hyphen between "qemu" and the architecture name, but ARM uses an underscore. Rename the ARM defconfigs for consistency.
---
Changes in v3:
- Rebase on current mainline and keep the removed ARM devicetree deleted
Changes in v2:
- Add missing Azure and GitLab CI changes
.azure-pipelines.yml | 24 +++++++++----------
.gitlab-ci.yml | 24 +++++++++----------
MAINTAINERS | 2 +-
arch/arm/dts/qemu-arm64.dts | 2 +-
board/emulation/qemu-arm/MAINTAINERS | 2 +-
...pi_defconfig => qemu-arm64_acpi_defconfig} | 2 +-
...u_arm64_defconfig => qemu-arm64_defconfig} | 0
...ip_defconfig => qemu-arm64_lwip_defconfig} | 2 +-
...{qemu_arm_defconfig => qemu-arm_defconfig} | 0
doc/board/emulation/qemu-arm.rst | 8 +++----
doc/develop/driver-model/virtio.rst | 6 ++---
doc/develop/uefi/uefi.rst | 2 +-
tools/docker/Dockerfile | 8 +++----
13 files changed, 41 insertions(+), 41 deletions(-)
rename configs/{qemu_arm64_acpi_defconfig => qemu-arm64_acpi_defconfig} (54%)
rename configs/{qemu_arm64_defconfig => qemu-arm64_defconfig} (100%)
rename configs/{qemu_arm64_lwip_defconfig => qemu-arm64_lwip_defconfig} (83%)
rename configs/{qemu_arm_defconfig => qemu-arm_defconfig} (100%).azure-pipelines.yml +12 -12
@@ -253,9 +253,9 @@ stages: cd \${WORK_DIR} git config --global --add safe.directory \${WORK_DIR} git clone --depth=1 https://git.u-boot-project.org/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks - # qemu_arm64_lwip_defconfig is the same as qemu_arm64 but with NET_LWIP enabled. - # The test config and the boardenv file from qemu_arm64 can be re-used so create symlinks - ln -s conf.qemu_arm64 /tmp/uboot-test-hooks/bin/travis-ci/conf.qemu_arm64_lwip_na + # qemu-arm64_lwip_defconfig is the same as qemu-arm64 but with NET_LWIP enabled + # The test config and the boardenv file from qemu-arm64 can be re-used so create symlinks + ln -s conf.qemu-arm64 /tmp/uboot-test-hooks/bin/travis-ci/conf.qemu-arm64_lwip_na ln -s u_boot_boardenv_qemu_arm64_na.py /tmp/uboot-test-hooks/py/travis-ci/u_boot_boardenv_qemu_arm64_lwip_na.py ln -s travis-ci /tmp/uboot-test-hooks/bin/\`hostname\` ln -s travis-ci /tmp/uboot-test-hooks/py/\`hostname\`
@@ -474,21 +474,21 @@ stages: TEST_PY_BD: "integratorcp_cm926ejs" TEST_PY_ID: "--id qemu" TEST_PY_TEST_SPEC: "not sleep" - qemu_arm: - TEST_PY_BD: "qemu_arm" + qemu-arm: + TEST_PY_BD: "qemu-arm" TEST_PY_TEST_SPEC: "not sleep" - qemu_arm64: - TEST_PY_BD: "qemu_arm64" + qemu-arm64: + TEST_PY_BD: "qemu-arm64" TEST_PY_TEST_SPEC: "not sleep" OVERRIDE: "-a CONFIG_SEMIHOSTING=y" - qemu_arm64_lwip: - TEST_PY_BD: "qemu_arm64_lwip" + qemu-arm64_lwip: + TEST_PY_BD: "qemu-arm64_lwip" TEST_PY_TEST_SPEC: "test_net_dhcp or test_net_ping or test_net_tftpboot" - qemu_arm64_tfa_fw_handoff: - TEST_PY_BD: "qemu_arm64" + qemu-arm64_tfa_fw_handoff: + TEST_PY_BD: "qemu-arm64" TEST_PY_ID: "--id fw_handoff_tfa_optee" TEST_PY_TEST_SPEC: "test_fw_handoff" - qemu_arm_sbsa_ref: + qemu-arm_sbsa_ref: TEST_PY_BD: "qemu-arm-sbsa" TEST_PY_TEST_SPEC: "not sleep" qemu_m68k:
.gitlab-ci.yml +12 -12
@@ -37,9 +37,9 @@ stages: # Clone uboot-test-hooks - git config --global --add safe.directory "${CI_PROJECT_DIR}" - git clone --depth=1 https://git.u-boot-project.org/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks - # qemu_arm64_lwip_defconfig is the same as qemu_arm64 but with NET_LWIP enabled. - # The test config and the boardenv file from qemu_arm64 can be re-used so create symlinks - - ln -s conf.qemu_arm64 /tmp/uboot-test-hooks/bin/travis-ci/conf.qemu_arm64_lwip_na + # qemu-arm64_lwip_defconfig is the same as qemu-arm64 but with NET_LWIP enabled + # The test config and the boardenv file from qemu-arm64 can be re-used so create symlinks + - ln -s conf.qemu-arm64 /tmp/uboot-test-hooks/bin/travis-ci/conf.qemu-arm64_lwip_na - ln -s u_boot_boardenv_qemu_arm64_na.py /tmp/uboot-test-hooks/py/travis-ci/u_boot_boardenv_qemu_arm64_lwip_na.py - ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname` - ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
@@ -386,33 +386,33 @@ integratorcp_cm926ejs test.py: TEST_PY_ID: "--id qemu" <<: *buildman_and_testpy_dfn -qemu_arm test.py: +qemu-arm test.py: variables: - TEST_PY_BD: "qemu_arm" + TEST_PY_BD: "qemu-arm" TEST_PY_TEST_SPEC: "not sleep" <<: *buildman_and_testpy_dfn -qemu_arm64 test.py: +qemu-arm64 test.py: variables: - TEST_PY_BD: "qemu_arm64" + TEST_PY_BD: "qemu-arm64" TEST_PY_TEST_SPEC: "not sleep" OVERRIDE: "-a CONFIG_SEMIHOSTING=y" <<: *buildman_and_testpy_dfn -qemu_arm64_lwip test.py: +qemu-arm64_lwip test.py: variables: - TEST_PY_BD: "qemu_arm64_lwip" + TEST_PY_BD: "qemu-arm64_lwip" TEST_PY_TEST_SPEC: "test_net_dhcp or test_net_ping or test_net_tftpboot" <<: *buildman_and_testpy_dfn -qemu_arm64_tfa_fw_handoff test.py: +qemu-arm64_tfa_fw_handoff test.py: variables: - TEST_PY_BD: "qemu_arm64" + TEST_PY_BD: "qemu-arm64" TEST_PY_ID: "--id fw_handoff_tfa_optee" TEST_PY_TEST_SPEC: "test_fw_handoff" <<: *buildman_and_testpy_dfn -qemu_arm_sbsa test.py: +qemu-arm_sbsa test.py: variables: TEST_PY_BD: "qemu-arm-sbsa" TEST_PY_TEST_SPEC: "not sleep"
MAINTAINERS +1 -1
@@ -1330,7 +1330,7 @@ M: Jerome Forissier <[email protected]> S: Maintained T: git https://git.u-boot-project.org/u-boot/custodians/u-boot-net.git F: cmd/lwip/ -F: configs/qemu_arm64_lwip_defconfig +F: configs/qemu-arm64_lwip_defconfig F: include/net-lwip.h F: lib/lwip/Makefile F: lib/lwip/u-boot/
arch/arm/dts/qemu-arm64.dts +1 -1
@@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ OR MIT /* - * Empty device tree for qemu_arm64 + * Empty device tree for qemu-arm64 * Copyright 2021 Google LLC */
board/emulation/qemu-arm/MAINTAINERS +1 -1
@@ -5,5 +5,5 @@ F: board/emulation/qemu-arm/ F: board/emulation/common/ F: include/configs/qemu-arm.h F: include/configs/qemu-sbsa.h -F: configs/qemu_arm* +F: configs/qemu-arm* F: configs/qemu-arm-sbsa_defconfig
configs/qemu-arm64_acpi_defconfig renamed from configs/qemu_arm64_acpi_defconfig +1 -1
@@ -1,2 +1,2 @@ -#include <configs/qemu_arm64_defconfig> +#include <configs/qemu-arm64_defconfig> #include <board/emulation/configs/acpi.config>
configs/qemu-arm64_defconfig renamed from configs/qemu_arm64_defconfig +0 -0
configs/qemu-arm64_lwip_defconfig renamed from configs/qemu_arm64_lwip_defconfig +1 -1
@@ -1,4 +1,4 @@ -#include <configs/qemu_arm64_defconfig> +#include <configs/qemu-arm64_defconfig> CONFIG_ARM=y CONFIG_ARCH_QEMU=y
configs/qemu-arm_defconfig renamed from configs/qemu_arm_defconfig +0 -0
doc/board/emulation/qemu-arm.rst +4 -4
@@ -32,7 +32,7 @@ U-Boot - For AArch64:: - make qemu_arm64_defconfig + make qemu-arm64_defconfig make On successful build 'u-boot.bin' should be created. It's necessary in the following
@@ -100,12 +100,12 @@ Set the CROSS_COMPILE environment variable as usual, and run: - For ARM:: - make qemu_arm_defconfig + make qemu-arm_defconfig make - For AArch64:: - make qemu_arm64_defconfig + make qemu-arm64_defconfig make Running U-Boot (secure)
@@ -182,7 +182,7 @@ Booting distros --------------- It is possible to install and boot a standard Linux distribution using -qemu_arm64 by setting up a root disk:: +qemu-arm64 by setting up a root disk:: qemu-img create root.img 20G
doc/develop/driver-model/virtio.rst +3 -3
@@ -32,8 +32,8 @@ network and block device, the most two commonly used devices, are supported. The following QEMU targets are supported. - - qemu_arm_defconfig - - qemu_arm64_defconfig + - qemu-arm_defconfig + - qemu-arm64_defconfig - qemu-arm-sbsa_defconfig - qemu-riscv32_defconfig - qemu-riscv64_defconfig
@@ -51,7 +51,7 @@ variable being properly set to a working toolchain for ARM: .. code-block:: bash - $ make qemu_arm_defconfig + $ make qemu-arm_defconfig $ make You can even create a QEMU ARM target with VirtIO devices showing up on both
doc/develop/uefi/uefi.rst +1 -1
@@ -713,7 +713,7 @@ HTTP(s) Boot can be activated by specifying:: For QEMU targets there's a Kconfig that supports this by default:: - make qemu_arm64_lwip_defconfig + make qemu-arm64_lwip_defconfig The commands and functionality are similar to the legacy stack, with the notable exception of not having to define an "httpserverip" if you are trying to resolve
tools/docker/Dockerfile +4 -4
@@ -251,7 +251,7 @@ RUN git clone https://gitlab.com/qemu-project/qemu.git /tmp/qemu && \ make -j$(nproc) all install && \ rm -rf /tmp/qemu -# Build OP-TEE for qemu_arm64 +# Build OP-TEE for qemu-arm64 RUN git clone --depth=1 https://github.com/OP-TEE/optee_os.git /tmp/optee_os \ -b 4.7.0 && \ cd /tmp/optee_os/ && \
@@ -264,7 +264,7 @@ RUN git clone --depth=1 https://github.com/OP-TEE/optee_os.git /tmp/optee_os \ CFG_REE_FS=n CFG_CORE_ARM64_PA_BITS=48 \ CFG_TEE_CORE_LOG_LEVEL=2 -# Build fiptool, bl1 and fip for fvp and qemu_arm64 +# Build fiptool, bl1 and fip for fvp and qemu-arm64 RUN git clone --depth=1 -b mbedtls-3.6 https://github.com/ARMmbed/mbedtls.git /tmp/mbedtls RUN git clone --depth=1 https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git /tmp/tf-a \ -b v2.13.0 && \
@@ -294,9 +294,9 @@ RUN git clone --depth=1 https://git.trustedfirmware.org/TF-A/trusted-firmware-a. MBOOT_EL_HASH_ALG=sha256 \ MBEDTLS_DIR=/tmp/mbedtls \ -j$(nproc) all fip && \ - mkdir -p /opt/tf-a/qemu_arm64_fw_handoff_tfa_optee && \ + mkdir -p /opt/tf-a/qemu-arm64_fw_handoff_tfa_optee && \ cp build/qemu/release/fip.bin build/qemu/release/bl1.bin \ - /opt/tf-a/qemu_arm64_fw_handoff_tfa_optee/ && \ + /opt/tf-a/qemu-arm64_fw_handoff_tfa_optee/ && \ make CROSS_COMPILE=/opt/gcc-${TCVER}-nolibc/aarch64-linux/bin/aarch64-linux- \ PLAT=sun50i_a64 -j$(nproc) all && \ mkdir -p /opt/tf-a/pine64_plus && \
---
base-commit: c267fa81d42b5a5bd1055d3858f74496faa6082f
branch: qemu-arm
Signature · 1 line
2.53.0
PATCH v3 2/2 qemu: arm: sbsa: Rename sbsa defconfig to arm64
From: Bin Meng <[email protected]>
The QEMU ARM SBSA virtual platform is 64-bit, so rename its defconfig to include 'arm64' for clarity.
---
CI requires the matching u-boot-test-hooks renames from series 530221:
https://patchwork.ozlabs.org/project/uboot/list/?series=530221
The CI runner image must also be rebuilt from this series so that TF-A is available in /opt/tf-a/qemu-arm64_fw_handoff_tfa_optee.
Changes in v3:
- Rebase on current mainline
- Update the SBSA build instructions
Changes in v2:
- Add missing Azure and GitLab CI changes
.azure-pipelines.yml | 6 +++---
.gitlab-ci.yml | 6 +++---
board/emulation/qemu-arm/MAINTAINERS | 2 +-
.../{qemu-arm-sbsa_defconfig => qemu-arm64-sbsa_defconfig} | 0
doc/board/emulation/qemu-sbsa.rst | 2 +-
doc/develop/driver-model/virtio.rst | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
rename configs/{qemu-arm-sbsa_defconfig => qemu-arm64-sbsa_defconfig} (100%).azure-pipelines.yml +3 -3
@@ -267,7 +267,7 @@ stages: wget -O - https://github.com/riscv-software-src/opensbi/releases/download/v1.3.1/opensbi-1.3.1-rv-bin.tar.xz | tar -C /tmp -xJ; export OPENSBI=/tmp/opensbi-1.3.1-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.bin; fi - if [[ "\${TEST_PY_BD}" == "qemu-arm-sbsa" ]]; then + if [[ "\${TEST_PY_BD}" == "qemu-arm64-sbsa" ]]; then wget -O /tmp/bl1.bin https://artifacts.codelinaro.org/artifactory/linaro-419-sbsa-ref/latest/tf-a/bl1.bin; wget -O /tmp/fip.bin https://artifacts.codelinaro.org/artifactory/linaro-419-sbsa-ref/latest/tf-a/fip.bin; export BINMAN_INDIRS=/tmp
@@ -488,8 +488,8 @@ stages: TEST_PY_BD: "qemu-arm64" TEST_PY_ID: "--id fw_handoff_tfa_optee" TEST_PY_TEST_SPEC: "test_fw_handoff" - qemu-arm_sbsa_ref: - TEST_PY_BD: "qemu-arm-sbsa" + qemu-arm64-sbsa_ref: + TEST_PY_BD: "qemu-arm64-sbsa" TEST_PY_TEST_SPEC: "not sleep" qemu_m68k: TEST_PY_BD: "M5208EVBE"
.gitlab-ci.yml +3 -3
@@ -51,7 +51,7 @@ stages: wget -O - https://github.com/riscv-software-src/opensbi/releases/download/v1.3.1/opensbi-1.3.1-rv-bin.tar.xz | tar -C /tmp -xJ; export OPENSBI=/tmp/opensbi-1.3.1-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.bin; fi - - if [[ "${TEST_PY_BD}" == "qemu-arm-sbsa" ]]; then + - if [[ "${TEST_PY_BD}" == "qemu-arm64-sbsa" ]]; then wget -O /tmp/bl1.bin https://artifacts.codelinaro.org/artifactory/linaro-419-sbsa-ref/latest/tf-a/bl1.bin; wget -O /tmp/fip.bin https://artifacts.codelinaro.org/artifactory/linaro-419-sbsa-ref/latest/tf-a/fip.bin; export BINMAN_INDIRS=/tmp;
@@ -412,9 +412,9 @@ qemu-arm64_tfa_fw_handoff test.py: TEST_PY_TEST_SPEC: "test_fw_handoff" <<: *buildman_and_testpy_dfn -qemu-arm_sbsa test.py: +qemu-arm64-sbsa test.py: variables: - TEST_PY_BD: "qemu-arm-sbsa" + TEST_PY_BD: "qemu-arm64-sbsa" TEST_PY_TEST_SPEC: "not sleep" <<: *buildman_and_testpy_dfn
board/emulation/qemu-arm/MAINTAINERS +1 -1
@@ -6,4 +6,4 @@ F: board/emulation/common/ F: include/configs/qemu-arm.h F: include/configs/qemu-sbsa.h F: configs/qemu-arm* -F: configs/qemu-arm-sbsa_defconfig +F: configs/qemu-arm64-sbsa_defconfig
configs/qemu-arm64-sbsa_defconfig renamed from configs/qemu-arm-sbsa_defconfig +0 -0
doc/board/emulation/qemu-sbsa.rst +1 -1
@@ -50,7 +50,7 @@ Set the CROSS_COMPILE environment variable as usual, and run: .. code-block:: bash - make qemu-arm-sbsa_defconfig + make qemu-arm64-sbsa_defconfig make Running U-Boot
doc/develop/driver-model/virtio.rst +1 -1
@@ -34,7 +34,7 @@ The following QEMU targets are supported. - qemu-arm_defconfig - qemu-arm64_defconfig - - qemu-arm-sbsa_defconfig + - qemu-arm64-sbsa_defconfig - qemu-riscv32_defconfig - qemu-riscv64_defconfig - qemu-x86_defconfig
---
base-commit: c267fa81d42b5a5bd1055d3858f74496faa6082f
branch: qemu-arm
Signature · 1 line
2.53.0
Re: [PATCH v3 2/2] qemu: arm: sbsa: Rename sbsa defconfig to arm64
Hi Bin,
board/emulation/qemu-arm/MAINTAINERS F: board/emulation/common/ · line 7
Quoted 5 lines · Bin Meng
board/emulation/qemu-arm/MAINTAINERS +1
-1@@ -6,4 +6,4 @@ F: board/emulation/common/ F: configs/qemu-arm* -F: configs/qemu-arm-sbsa_defconfig +F: configs/qemu-arm64-sbsa_defconfig
I suppose the configs/qemu-arm* line above already covers this file, so you could drop this line, but anyway:
Regards,
Simon