[ipxe-devel] Define either UEFI or BIOS in h (header) files during compiling.

Robin Smidsrød robin at smidsrod.no
Sun Aug 18 20:32:58 UTC 2019


You probably want to look at named configurations, so you can have one
configuration for your UEFI builds and another for your legacy BIOS builds.

http://ipxe.org/appnote/named_config

-- Robin

On 18.08.2019 22.04, CpServiceSPb . wrote:
> Is there optiont to specify at, for example, general.h to separate
> compiling of UEFI or BIOS versions ?
> That is, some like this:
> 
> general.h
> 
> #ifdef UEFI
> # some definitions for UEFI version only
> #endif
> 
> #ifdef BIOS
> # some definitions for BIOS version only
> #endif
> 
> The quiestion is that #define IMAGE_SDI is not acceptable for UEFI
> version as IMAGE_EFI is not for BIOS version.
> 
> _______________________________________________
> ipxe-devel mailing list
> ipxe-devel at lists.ipxe.org
> https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel
> 



More information about the ipxe-devel mailing list