hooks: travis-ci: Add qemu-riscv{32,64}_spl targets

Add support for testing qemu-riscv{32,64}_spl_defconfig.
Unlike qemu-riscv{32,64} targets, this creates a 4-core SMP
configuration to cover U-Boot SMP codes testing.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
This commit is contained in:
Bin Meng
2020-03-26 09:05:09 -07:00
committed by Simon Glass
parent 669f4e9e5b
commit 502e5f9dcc
4 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# SPDX-License-Identifier: MIT
#
# Copyright (c) 2020 Bin Meng <bmeng.cn@gmail.com>
console_impl=qemu
qemu_machine="virt"
qemu_binary="qemu-system-riscv32"
qemu_extra_args="-smp 4 -m 1G -nographic -netdev user,id=net0,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device virtio-net-device,netdev=net0"
qemu_kernel_args="-kernel ${U_BOOT_BUILD_DIR}/spl/u-boot-spl -device loader,file=${U_BOOT_BUILD_DIR}/u-boot.itb,addr=0x80200000"
reset_impl=none
flash_impl=none

View File

@@ -0,0 +1,11 @@
# SPDX-License-Identifier: MIT
#
# Copyright (c) 2020 Bin Meng <bmeng.cn@gmail.com>
console_impl=qemu
qemu_machine="virt"
qemu_binary="qemu-system-riscv64"
qemu_extra_args="-smp 4 -m 1G -nographic -netdev user,id=net0,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device virtio-net-device,netdev=net0"
qemu_kernel_args="-kernel ${U_BOOT_BUILD_DIR}/spl/u-boot-spl -device loader,file=${U_BOOT_BUILD_DIR}/u-boot.itb,addr=0x80200000"
reset_impl=none
flash_impl=none

View File

@@ -0,0 +1,10 @@
import os
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')
env__efi_loader_grub_file = travis_tftp.file2env('grub_riscv32.efi')
env__efi_fit_tftp_file = {
"dn" : os.environ['UBOOT_TRAVIS_BUILD_DIR'],
}

View File

@@ -0,0 +1,10 @@
import os
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')
env__efi_loader_grub_file = travis_tftp.file2env('grub_riscv64.efi')
env__efi_fit_tftp_file = {
"dn" : os.environ['UBOOT_TRAVIS_BUILD_DIR'],
}