This is a little tricky. One has to compile a library not for 'android' or 'linux' but for the particular CPU (or MCU). Our existing libraries are for Arm Cortex processors - because that's what the STM32 is based on. If you want a different CPU, one pretty much as to specify which CPU it is.
It's also tricky because unless someone has to dig up a cross-compiler. Not impossible, but not easy either.
Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised.
ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'