Bug 259158 - graphics/libdrm: Enable radeon on RISC-V
Summary: graphics/libdrm: Enable radeon on RISC-V
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: riscv Any
: --- Affects Many People
Assignee: freebsd-x11 (Nobody)
URL:
Keywords: feature, needs-qa
Depends on:
Blocks:
 
Reported: 2021-10-13 22:09 UTC by Robert Clausecker
Modified: 2021-10-21 12:29 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (x11)
koobs: merge-quarterly?


Attachments
graphics/libdrm: enable RADEON on riscv64. (779 bytes, patch)
2021-10-13 22:09 UTC, Robert Clausecker
no flags Details | Diff
graphics/libdrm: enable RADEON on riscv64 (933 bytes, patch)
2021-10-21 12:29 UTC, Robert Clausecker
fuz: maintainer-approval? (manu)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Clausecker 2021-10-13 22:09:09 UTC
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.
Comment 1 Emmanuel Vadot freebsd_committer 2021-10-21 12:13:48 UTC
I would prefer to have another elif for riscv64 arch, makefile will be more clear.
Comment 2 Robert Clausecker 2021-10-21 12:29:59 UTC
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).