Created attachment 228682 [details] graphics/libdrm: enable RADEON on riscv64. With the attached patch I was able to build a radeon-enabled version of graphics/libdrm on a patched riscv64 FreeBSD 13-STABLE with a hand compiled drm kernel module. I am unable to check if this patch works with vanilla 13-STABLE. Patch needs QA and further testing.
I would prefer to have another elif for riscv64 arch, makefile will be more clear.
Created attachment 228922 [details] graphics/libdrm: enable RADEON on riscv64 Made a new case for ${ARCH} == riscv64. Not tested due to a temporary lack of hardware (but should work the same way as before).
(In reply to Emmanuel Vadot from comment #1) Do you approve of the revised patch?
Looks good, will take care of it today.
(In reply to Emmanuel Vadot from comment #4) Any progress on this one?
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=673b15bdeeab9bcc8167fb987b91ce3d54f56b2a commit 673b15bdeeab9bcc8167fb987b91ce3d54f56b2a Author: Robert Clausecker <fuz@fuz.su> AuthorDate: 2021-11-19 10:05:22 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2021-11-19 10:07:18 +0000 graphics/libdrm: enable RADEON on riscv64 PR: 259158 graphics/libdrm/Makefile | 6 ++++++ 1 file changed, 6 insertions(+)