Compiling Mali Midgard driver for Linux v6.11-rc5 to obtain OpenCL with closed-source libMali

As Linux kernel versions advance some out-of-tree modules begin to fall into obscurity and obsolescence! While I appreciate the efforts of LibreELEC team to try to maintain Mali Midgard drivers working the latest kernel supported is 5.16 which is eternity past if you need Mainline Linux. This is a diffstat specially aimed at Rock Pi N10 users - perhaps it could work for Rock Pi 4, I don't know! -…