'How can a compile a c codefile as a efi app?

I have a c code file and I would like to compile it as an efi application. How can this be done using linux and windows cli tools (i.e. without creating a visual studio project)

Than you



Solution 1:[1]

You can use edk2, there is a guide how to write a simple application. You will still need to create some sort of project, in this case a .inf file that contains required informations for the build tools.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MiSimon