Skip to content

Commit

Permalink
test-configs: add sparc64 sun4u qemu
Browse files Browse the repository at this point in the history
Since kernelCI builds sparc64 defconfig, we could now boot some sparc64 qemu.
From the 3 qemu machine, only sun4u is easy to add.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
  • Loading branch information
montjoie committed May 11, 2022
1 parent c13a52f commit ab230ee
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
17 changes: 17 additions & 0 deletions config/core/test-configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1494,6 +1494,19 @@ device_types:
filters:
- passlist: {defconfig: ['defconfig']}

qemu_sparc64:
base_name: qemu
mach: qemu
arch: sparc64
boot_method: qemu
context:
arch: sparc64
guestfs_interface: 'ide'
machine: 'sun4u'
no_kvm: True
memory: 384
model: 'model=sunhme'

qemu_x86_64: &qemu_x86_64
base_name: qemu
mach: qemu
Expand Down Expand Up @@ -2597,6 +2610,10 @@ test_configs:
test_plans:
- baseline_qemu

- device_type: qemu_sparc64
test_plans:
- baseline_qemu

- device_type: qemu_x86_64
test_plans:
- baseline_qemu
Expand Down
4 changes: 4 additions & 0 deletions config/lava/boot/generic-qemu-boot-template.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
{% set console_dev = console_dev|default('ttyS0') %}
{% set qemu_binary = 'qemu-system-riscv64' %}
{% endif %}
{% if arch == 'sparc64' %}
{% set console_dev = console_dev|default('ttyS0') %}
{% set qemu_binary = 'qemu-system-sparc64' %}
{% endif %}
{% if arch == 'x86_64' %}
{% set console_dev = console_dev|default('ttyS0') %}
{% set qemu_binary = 'qemu-system-x86_64' %}
Expand Down

0 comments on commit ab230ee

Please sign in to comment.