* [edk2-devel] Some unpredictable behavior while parsing the FDF file. @ 2023-12-26 20:10 Aleksey Ryzhov 2023-12-28 16:09 ` Joey Vagedes via groups.io 0 siblings, 1 reply; 2+ messages in thread From: Aleksey Ryzhov @ 2023-12-26 20:10 UTC (permalink / raw) To: devel@edk2.groups.io [-- Attachment #1: Type: text/plain, Size: 695 bytes --] Hello! I'm trying to add the following construct to an FDF file: DEFINE MY_VAR = FALSE !if $(MY_VAR) !include Path/To/Non/Existing/File.inc !endif And I get the following error: GenFds.FdfParser.Warning: The include file does not exist under below directories: Is this correct FDF parser behavior? Thanks. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112936): https://edk2.groups.io/g/devel/message/112936 Mute This Topic: https://groups.io/mt/103394871/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- [-- Attachment #2: Type: text/html, Size: 2479 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [edk2-devel] Some unpredictable behavior while parsing the FDF file. 2023-12-26 20:10 [edk2-devel] Some unpredictable behavior while parsing the FDF file Aleksey Ryzhov @ 2023-12-28 16:09 ` Joey Vagedes via groups.io 0 siblings, 0 replies; 2+ messages in thread From: Joey Vagedes via groups.io @ 2023-12-28 16:09 UTC (permalink / raw) To: Aleksey Ryzhov, devel [-- Attachment #1: Type: text/plain, Size: 1193 bytes --] Hello. It depends on the actual path that you are trying to include. This is the requirements for an include statement (coming directly from the FDF specification): > > > > The tools look for <Filename> relative to the directory the FDF file > resides. If the file is not found, and the directory containing this FDF > file is not the same directory as the directory containing the DSC file, > the tools must attempt to locate the file relaitive to the directory that > contains the DSC file. > > > > If none of these methods find the file, and a directory separator is in <Filename> > , the tools attempt to find the file in a WORKSPACE (or a directory listed > in the PACKAGES_PATH) relative path. If the file cannot be found, the > build system must exit with an appropriate error message. > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112984): https://edk2.groups.io/g/devel/message/112984 Mute This Topic: https://groups.io/mt/103394871/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- [-- Attachment #2: Type: text/html, Size: 2804 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-28 16:09 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-12-26 20:10 [edk2-devel] Some unpredictable behavior while parsing the FDF file Aleksey Ryzhov 2023-12-28 16:09 ` Joey Vagedes via groups.io
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox