mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-29 20:25:59 +00:00
selftests/bpf: Add riscv64 configurations to local vmtest
Add riscv64 configurations to local vmtest.
We can now perform cross platform testing for riscv64 bpf using the
following command:
PLATFORM=riscv64 CROSS_COMPILE=riscv64-linux-gnu- vmtest.sh \
-l ./libbpf-vmtest-rootfs-2024.08.30-noble-riscv64.tar.zst -- \
./test_progs -d \
\"$(cat tools/testing/selftests/bpf/DENYLIST.riscv64 \
| cut -d'#' -f1 \
| sed -e 's/^[[:space:]]*//' \
-e 's/[[:space:]]*$//' \
| tr -s '\n' ','\
)\"
Tested-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Link: https://lore.kernel.org/r/20240905081401.1894789-10-pulehui@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
c402cb8580
commit
b2bc9d5054
@ -34,6 +34,15 @@ aarch64)
|
||||
BZIMAGE="arch/arm64/boot/Image"
|
||||
ARCH="arm64"
|
||||
;;
|
||||
riscv64)
|
||||
# required qemu version v7.2.0+
|
||||
QEMU_BINARY=qemu-system-riscv64
|
||||
QEMU_CONSOLE="ttyS0,115200"
|
||||
HOST_FLAGS=(-M virt -cpu host -enable-kvm -smp 8)
|
||||
CROSS_FLAGS=(-M virt -cpu rv64,sscofpmf=true -smp 8)
|
||||
BZIMAGE="arch/riscv/boot/Image"
|
||||
ARCH="riscv"
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported architecture"
|
||||
exit 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user