main/postmarketos-ui-kodi: switch to GBM
The Kodi UI is already broken for months in postmarketOS due to some permission issue between cage <--> Kodi Wayland. However, Kodi also supports GBM besides X11 and Wayland which is easier for standalone setups like ours.
- Drop tinydm as Kodi can handle everything in GBM mode.
- Use GBM mode of Kodi, Alpine has already the necessary OpenRC service, etc. available, reducing our packaging.
- Add udev rule to mount drives automatically when plugged in over USB, mounting devices in the Kodi UI is impossible.
Tested on a Raspberry Pi 3 and QEMU. The Raspberry Pi 3 doesn't have HW acceleration available on 64 bits which is a known issue in the Raspberry Pi firmware. Playing videos up to 720p is fine. The latter is thus unrelated to this MR. Besides video playback, rebooting & powering off the device is possible, network connection is established properly, and USB works with Kodi.
EDIT: also tested on a Pine64 SOPINE baseboard (A64 SBC), also no HW acceleration, maybe this is a Kodi thing? Kodi uses ffmpeg under the hood for acceleration, maybe we are missing something. Until we figure this out, this MR at least restores the Kodi UI in pmOS to almost its full glory.
Fixes #974 (closed)