NXS project iMX6 failed due to the patch (kodi-100.90-imx-quirk-plane-usage) on DRMUtils.cpp

  • While attempting to compile the latest master (commit ec1292ba3f8059c367b9f42d8e5cf38aa6056633), I had a build error near the end of compilation.

    Build command I used:

    PROJECT=NXS DEVICE=iMX6 ARCH=arm make image

    Here is the error I saw:

    Quote

    ../xbmc/windowing/gbm/DRMUtils.cpp:413:19: error: 'm_module' was not declared in this scope; did you mean 'm_mode'?

    413 | if (m_module == "imx-drm" && props->prop_values[j] != DRM_PLANE_TYPE_OVERLAY)

    | ^~~~~~~~

    | m_mode

    I could resolve it by just removing a patch file (kodi-100.90-imx-quirk-plane-usage.patch) for iMX6.

    projects/NXP/devices/iMX6/patches/kodi/kodi-100.90-imx-quirk-plane-usage.patch

    (I still have to test it on the device to make sure it's all good)

  • My test of this build on CuBox-i4Pro failed. It crashed after LibreELEC logo and it lost the HDMI signal. It looks like the display setting that that patch was trying to modify was important.

    At this point, I don't know what to do...