xref: /freebsd/tests/ci/Makefile.riscv64 (revision 7899f917b1c0ea178f1d2be0cfb452086d079d23)
1# SPDX-License-Identifier: BSD-2-Clause
2#
3# Copyright (c) 2024 The FreeBSD Foundation
4#
5# This software was developed by Cybermancer Infosec <bofh@FreeBSD.org>
6# under sponsorship from the FreeBSD Foundation.
7#
8# CI Makefile for riscv64.
9#
10QEMU_ARCH=riscv64
11QEMU_DEVICES=-device virtio-blk-device,drive=hd0
12QEMU_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
13QEMU_MAX_CPU_COUNT=16
14QEMU_MAX_MEM_SIZE=64
15
16portinstall-riscv64: portinstall-pkg .PHONY
17.if !exists(/usr/local/share/opensbi/lp64/generic/firmware/fw_jump.elf)
18	env ASSUME_ALWAYS_YES=yes pkg install sysutils/opensbi
19.endif
20.if !exists(/usr/local/share/u-boot/u-boot-qemu-riscv64/u-boot.bin)
21	env ASSUME_ALWAYS_YES=yes pkg install sysutils/u-boot-qemu-riscv64
22.endif
23
24# NOTE: Nothing should be changed below this line unless explicitly required.
25
26ci-buildworld-riscv64: ci-buildworld .PHONY
27
28ci-buildkernel-riscv64: ci-buildkernel .PHONY
29
30ci-buildimage-riscv64: ci-buildimage .PHONY
31
32ci-runtest-riscv64: ci-runtest .PHONY
33