[Bug 3465] New: Build tools cannot parse #if FixedPcdGetBool , used in header file of Structure PCD #if


bugzilla-daemon@...
 

https://bugzilla.tianocore.org/show_bug.cgi?id=3465

Bug ID: 3465
Summary: Build tools cannot parse #if FixedPcdGetBool , used in
header file of Structure PCD
Product: EDK2
Version: Current
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Lowest
Component: Tools
Assignee: unassigned@tianocore.org
Reporter: madhusudhan.nimbuja@gmail.com
CC: edk2+bugs+int+994+563148131503455288@groups.io

If Structure PCD use header file which includes FixedPcdGetBool() function ,
this results in build error:

example :
SAMPLE_STRU type structure PCD gives build error.

-------------sample.h----------------------
typedef struct {
UINT8 BlockId;
#if FixedPcdGetBool(PcdTimeoutSupport) == 1
union {
UINT8 Value;
struct {
UINT8 Timeout:7;
UINT8 Reserved:1;
} Bits;
} Timeout;
#endif
} SAMPLE_STRU;
-----------------------------------------------


gBoardModuleTokenSpaceGuid.Sample|{0}|SAMPLE_STRU|0x00001133 {
<HeaderFiles>
sample.h
}

--
You are receiving this mail because:
You are on the CC list for the bug.

Join bugs@edk2.groups.io to automatically receive all group messages.