[U-Boot] [PATCH 1/1] travis-ci: add qemu-riscv64
Heinrich Schuchardt
xypron.glpk at gmx.de
Sat Jul 6 07:43:19 UTC 2019
Add support for testing qemu-riscv64_defconfig.
Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
bin/travis-ci/conf.qemu-riscv64_na | 11 +++++++++++
py/travis-ci/u_boot_boardenv_qemu_riscv64_na.py | 6 ++++++
2 files changed, 17 insertions(+)
create mode 100644 bin/travis-ci/conf.qemu-riscv64_na
create mode 100644 py/travis-ci/u_boot_boardenv_qemu_riscv64_na.py
diff --git a/bin/travis-ci/conf.qemu-riscv64_na b/bin/travis-ci/conf.qemu-riscv64_na
new file mode 100644
index 0000000..b375e2b
--- /dev/null
+++ b/bin/travis-ci/conf.qemu-riscv64_na
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: MIT
+#
+# Copyright (c) 2019 Heinrich Schuchardt
+
+console_impl=qemu
+qemu_machine="virt"
+qemu_binary="qemu-system-riscv64"
+qemu_extra_args="-m 1G -nographic -netdev user,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device virtio-net-device,netdev=user"
+qemu_kernel_args="-kernel ${U_BOOT_BUILD_DIR}/u-boot"
+reset_impl=none
+flash_impl=none
diff --git a/py/travis-ci/u_boot_boardenv_qemu_riscv64_na.py b/py/travis-ci/u_boot_boardenv_qemu_riscv64_na.py
new file mode 100644
index 0000000..0a42872
--- /dev/null
+++ b/py/travis-ci/u_boot_boardenv_qemu_riscv64_na.py
@@ -0,0 +1,6 @@
+import travis_tftp
+
+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')
--
2.20.1
More information about the U-Boot
mailing list