Setting up Tianocore EDK2 and GCC
Posted: Sat Jan 24, 2015 7:12 am
Hello,
I'm trying to write my first simple OS bootloader and I want to do it with UEFI. Right now I'm able to write a simple application with gnu-efi, compile it, copy it on a hard disk image and load it with qemu+ovmf (basically, UEFI Bare Bones).
I want now to switch to EDK2 because it seems like it is more complete than gnu-efi(also, I want to avoid that ugly uefi_call_wrapper( ), but I think I could avoid it simply playing with something like -DEFIAPI=__attribute__((ms_abi))).
I was able to build EDK2 as explained here and run the HelloWorld example, but I cannot figure out how to properly organize the files(e.g. *.h files in /usr/include/edk2, and the remaining stuff in /usr/lib/edk2) so I can reuse them whenever I need to. Currently I use the workflow explained in points 5 and 6 here, but I want to be able to create my project folder wherever I want for the sake of simplicity.
Has anybody else tried to do something like this? Any help or hint is appreciated.
I'm trying to write my first simple OS bootloader and I want to do it with UEFI. Right now I'm able to write a simple application with gnu-efi, compile it, copy it on a hard disk image and load it with qemu+ovmf (basically, UEFI Bare Bones).
I want now to switch to EDK2 because it seems like it is more complete than gnu-efi(also, I want to avoid that ugly uefi_call_wrapper( ), but I think I could avoid it simply playing with something like -DEFIAPI=__attribute__((ms_abi))).
I was able to build EDK2 as explained here and run the HelloWorld example, but I cannot figure out how to properly organize the files(e.g. *.h files in /usr/include/edk2, and the remaining stuff in /usr/lib/edk2) so I can reuse them whenever I need to. Currently I use the workflow explained in points 5 and 6 here, but I want to be able to create my project folder wherever I want for the sake of simplicity.
Has anybody else tried to do something like this? Any help or hint is appreciated.