Files
freebsd/tests/ci/Makefile.riscv64
Siva Mahadevan 9ec37e8ff4 tests/ci: Use QEMU blockdev declaration for all platforms
This patch uses the QEMU manpage-recommended '-blockdev' option instead
of '-drive' to declare block devices. This also makes the mandatory
'-device' declarations constant across all platforms, which fixes the
missing QEMU_DEVICES tarfs device declarations on all Makefile.<arch>
files.

Signed-off-by: Siva Mahadevan <[email protected]>
Reviewed by:	imp, lwhsu
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D51479
2025-07-26 05:52:32 +08:00

32 lines
1.0 KiB
Makefile

# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2024 The FreeBSD Foundation
#
# This software was developed by Cybermancer Infosec <[email protected]>
# under sponsorship from the FreeBSD Foundation.
#
# CI Makefile for riscv64.
#
QEMU_ARCH=riscv64
QEMU_EXTRA_PARAM=-bios /usr/local/share/opensbi/lp64/generic/firmware/fw_jump.elf -kernel /usr/local/share/u-boot/u-boot-qemu-riscv64/u-boot.bin
QEMU_MAX_CPU_COUNT=16
QEMU_MAX_MEM_SIZE=64
portinstall-riscv64: portinstall-pkg .PHONY
.if !exists(/usr/local/share/opensbi/lp64/generic/firmware/fw_jump.elf)
env ASSUME_ALWAYS_YES=yes pkg install sysutils/opensbi
.endif
.if !exists(/usr/local/share/u-boot/u-boot-qemu-riscv64/u-boot.bin)
env ASSUME_ALWAYS_YES=yes pkg install sysutils/u-boot-qemu-riscv64
.endif
# NOTE: Nothing should be changed below this line unless explicitly required.
ci-buildworld-riscv64: ci-buildworld .PHONY
ci-buildkernel-riscv64: ci-buildkernel .PHONY
ci-buildimage-riscv64: ci-buildimage .PHONY
ci-runtest-riscv64: ci-runtest .PHONY