| Summary: | Auto-detection to build KMSDRM on Raspberry Pi Rasbpian Stretch does not work | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Eric wing <ewmailing> |
| Component: | build | Assignee: | Ryan C. Gordon <icculus> |
| Status: | ASSIGNED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | connogriofa |
| Version: | 2.0.7 | ||
| Hardware: | ARM | ||
| OS: | Other | ||
| Attachments: | patch of pi kmsdrm build fix | ||
|
Description
Eric wing
2017-11-30 21:55:11 UTC
I published a repo with the fix at https://bitbucket.org/ewing/sdlpikmsbuildfix Can you attach a patch to this bug? Thanks! Created attachment 3107 [details]
patch of pi kmsdrm build fix
Here's the patch
Thanks, can you attach a tested patch for configure.in as well? (In reply to Sam Lantinga from comment #4) > Thanks, can you attach a tested patch for configure.in as well? Sorry, I really don't know my way around configure scripts. Is there anybody we can grab who is more knowledgable? I'm familiar with autoconf, but I don't have a raspberry pi setup. Ryan, you want to look at this one? Eric, Are you testing against 2.0.7 or the latest master? If the former, you should ensure that you're testing with these patches that were merged post-2.0.7: https://bugzilla.libsdl.org/show_bug.cgi?id=3938 With the above patches, it's possible to compile a build with --enable-video-rpi and --enable-video-kmsdrm together, and everything works as expected depending on the active kernel overlay. It wasn't necessary to modify the cmake file as you propose here, and I didn't encounter any dependency or build errors. Are you certain this is not going to break either the rpi or kmsdrm driver when targeting a build that includes both drivers? (In reply to Conn O'Griofa from comment #7) > Eric, > > Are you testing against 2.0.7 or the latest master? If the former, you > should ensure that you're testing with these patches that were merged > post-2.0.7: https://bugzilla.libsdl.org/show_bug.cgi?id=3938 > > With the above patches, it's possible to compile a build with > --enable-video-rpi and --enable-video-kmsdrm together, and everything works > as expected depending on the active kernel overlay. > > It wasn't necessary to modify the cmake file as you propose here, and I > didn't encounter any dependency or build errors. Are you certain this is not > going to break either the rpi or kmsdrm driver when targeting a build that > includes both drivers? This was tested against the latest master at the time I submitted the patch. The switches you describe don't apply to CMake as far as I understand as CMake doesn't use switches like that. I did not submit any changes to the Autotools system, though I suspect it needs similar changes. I believe the effect of this patch is to indeed get the KMSDRM backend compiled with the Pi drivers. The problem is that the Broadcom Pi drivers were relocated and renamed which is what this patch fixed. |