diff options
author | David Gow <[email protected]> | 2022-09-23 13:00:39 +0800 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2022-10-07 10:16:28 -0600 |
commit | 3c4fc7bf4c9e66fe71abcbf93f62f4ddb89b7f15 (patch) | |
tree | dfb4d266a0ff9003138dcf621cda477e22623804 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 185d57797c5ea82e941befc2489dba0cf162b9c4 (diff) |
kunit: tool: Don't download risc-v opensbi firmware with wget
When running a RISC-V test kernel under QEMU, we need an OpenSBI BIOS
file. In the original QEMU support patchset, kunit_tool would optionally
download this file from GitHub if it didn't exist, using wget.
These days, it can usually be found in the distro's qemu-system-riscv
package, and is located in /usr/share/qemu on all the distros I tried
(Debian, Arch, OpenSUSE). Use this file, and thereby don't do any
downloading in kunit_tool.
In addition, we used to shell out to whatever 'wget' was in the path,
which could have potentially been used to trick the developer into
running another binary. By not using wget at all, we nicely sidestep
this issue.
Cc: Xu Panda <[email protected]>
Fixes: 87c9c1631788 ("kunit: tool: add support for QEMU")
Reported-by: Zeal Robot <[email protected]>
Signed-off-by: David Gow <[email protected]>
Tested-by: Daniel Latypov <[email protected]>
Reviewed-by: Brendan Higgins <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions