puzzleos / stubby

UEFI bootloader stub
GNU Lesser General Public License v2.1
13 stars 8 forks source link

cross compiling for 32-bit EFI target #41

Open craftyguy opened 1 year ago

craftyguy commented 1 year ago

Some x86_64 system shipped with 32-bit EFI, and I've been trying to build a 32-bit EFI version of stubby on an x86_64 system without success. Have you attempted this, or have any guidance? I think clang can do it (with headers from gnu-efi), but I wasn't able to figure out how to build stubby with clang for x86_64 as a starting point.

smoser commented 1 year ago

I've not tried building with anything other than gcc. With regard to x86_64 clang, I'd start with creating a build environment as is done by .github/workflows/build.yml and then trying make stubby.efi CC=/path/to/clang-cc .

Sorry if the above is not helpful.