An undocumented feature of the EDK2 build system prunes PCD entries from the 
PCD database if no INF refers to them. This causes problems when PCD accesses 
happen purely at runtime using generated PCD token numbers (i.e. the token 
number is some form of 0x2000+X) or when PCD tokens are meant to be discovered 
by searching through certain GUID (i.e. using GetNextToken() with a specific 
GUID returns all PCDs associated with it). Currently, in order to work around 
this, every time we create this type of PCD in the project's .dec fie, we must 
also add it to an .inf.

I understand the value of auto-pruning. Currently INFs do not have a way to 
disable references to PCDs that are not used because of feature flags. But 
there needs to be some way to turn off this undocumented behavior.

Tim
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to