Cross-compiling howto?

I’m wanting to cross-compile Adaffruit’s LED Backpack library to object files for the Esp32 so that I can import it in some micropython code I want to write. Does anyone know of a good howto for creating object files for microcontroller architectures from C code?

I have found good guides for every other step of the process.