[u-boot-test-hooks PATCH 4/4] qemu-loongarch64: New board

Simon Glass sjg at chromium.org
Wed Jun 12 00:22:28 CEST 2024


On Tue, 11 Jun 2024 at 15:01, Jiaxun Yang <jiaxun.yang at flygoat.com> wrote:
>
> Signed-off-by: Jiaxun Yang <jiaxun.yang at flygoat.com>
> ---
>  bin/travis-ci/conf.qemu-loongarch64_na              | 12 ++++++++++++
>  py/travis-ci/u_boot_boardenv_qemu_loongarch64_na.py | 11 +++++++++++
>  2 files changed, 23 insertions(+)
>  create mode 100644 bin/travis-ci/conf.qemu-loongarch64_na
>  create mode 100644 py/travis-ci/u_boot_boardenv_qemu_loongarch64_na.py
>

Reviewed-by: Simon Glass <sjg at chromium.org>


> diff --git a/bin/travis-ci/conf.qemu-loongarch64_na b/bin/travis-ci/conf.qemu-loongarch64_na
> new file mode 100644
> index 000000000000..e8860bb40326
> --- /dev/null
> +++ b/bin/travis-ci/conf.qemu-loongarch64_na
> @@ -0,0 +1,12 @@
> +# SPDX-License-Identifier: MIT
> +#
> +# Copyright (c) 2024 Jiaxun Yang
> +#
> +
> +console_impl=qemu
> +qemu_machine="virt"
> +qemu_binary="qemu-system-loongarch64"
> +qemu_extra_args="-m 1G -nographic -netdev user,id=net0,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device virtio-net-pci,netdev=net0 -device virtio-rng-pci"
> +qemu_kernel_args="-bios ${U_BOOT_BUILD_DIR}/u-boot.bin"
> +reset_impl=none
> +flash_impl=none
> diff --git a/py/travis-ci/u_boot_boardenv_qemu_loongarch64_na.py b/py/travis-ci/u_boot_boardenv_qemu_loongarch64_na.py
> new file mode 100644
> index 000000000000..8a9f747f0457
> --- /dev/null
> +++ b/py/travis-ci/u_boot_boardenv_qemu_loongarch64_na.py
> @@ -0,0 +1,11 @@
> +import os
> +import travis_tftp
> +
> +env__net_uses_pci = True
> +env__net_dhcp_server = True
> +env__net_tftp_readable_file = travis_tftp.file2env('u-boot')
> +env__efi_loader_helloworld_file = travis_tftp.file2env('lib/efi_loader/helloworld.efi')
> +env__efi_loader_grub_file = travis_tftp.file2env('grub_loongarch64.efi')
> +env__efi_fit_tftp_file = {
> +    "dn" : os.environ['UBOOT_TRAVIS_BUILD_DIR'],
> +}
> --
> 2.43.0
>


More information about the U-Boot mailing list