The M5 library is declared to be under the MIT license, but if you look at the modules, you will see that there are several licenses mixed in. (For example, GPL and CC)
Since the library is not distributed as binary code, we believe that even if it is declared as MIT, it actually needs to be treated as GPL.
If this is not what is intended, it would be better to organize and unify the licenses.