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_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 12QEMU_MAX_CPU_COUNT=16 13QEMU_MAX_MEM_SIZE=64 14 15portinstall-riscv64: portinstall-pkg .PHONY 16.if !exists(/usr/local/share/opensbi/lp64/generic/firmware/fw_jump.elf) 17 env ASSUME_ALWAYS_YES=yes pkg install sysutils/opensbi 18.endif 19.if !exists(/usr/local/share/u-boot/u-boot-qemu-riscv64/u-boot.bin) 20 env ASSUME_ALWAYS_YES=yes pkg install sysutils/u-boot-qemu-riscv64 21.endif 22 23# NOTE: Nothing should be changed below this line unless explicitly required. 24 25ci-buildworld-riscv64: ci-buildworld .PHONY 26 27ci-buildkernel-riscv64: ci-buildkernel .PHONY 28 29ci-buildimage-riscv64: ci-buildimage .PHONY 30 31ci-runtest-riscv64: ci-runtest .PHONY 32