Implement a Compatibility Support Module as a UEFI executable?

@diderius6 @daniel_k @Mov_AX_0xDEAD

Do you think it might be possible to Implement a Compatibility Support Module as a UEFI executable?
This would be for class 3 UEFI systems to create a CSM on the fly for newer systems that do not have one.

Although the only coding example I can find for how a CSM is made is the one from SeaBIOS
https://github.com/coreboot/seabios/blob/master/src/fw/csm.c

@infuscomus

May be it can be compiled as a *.EFI file
and integrate direct into any UEFI Bios.
But I dont know how to do this
Dietmar

@diderius6

I was imagining it as something that would not have to be integrated into a BIOS but instead be a portable .EFI executable file that you can store on a USB and run from a UEFI terminal and once executed it collects information about your hardware and makes it’s own CSM and boot the CSM it built from there.

But I have no idea if it would be possible to make a CSM on the fly like that.