How to specify include paths for a UEFI application built using an INF file in edk2?

349 Views Asked by At

The INF file format is being used to specify module information for UEFI application. Source files are mentioned using [Sources] section. The include path where the header required by these files are automatically generated giving no control over it.

In my use case I want to explicitly specify which Include paths to add, instead of edk2 auto-generated ones. Can anyone help me where I can mention the include paths explicitly for the module.

I tried adding [Includes] section inside INF file, but edk2 is throwing error and I believe it should not be added in INF. (https://tianocore-docs.github.io/edk2-InfSpecification/draft/2_inf_overview/28_[includes]_section.html#28-includes-section)

Since I don't want other Libs that are built by DEC or DSC file affected if I had [Includes] sections in DEC/DSC file.

0

There are 0 best solutions below