On Aug 4, 2014, at 1:42 AM, bhupesh.sha...@freescale.com wrote:

> Hi,
> 
> The latest edk2/ArmPlatformPkg/Bds/Bds.inf puts NetLib as a required Library 
> class.
> 
> Some ARM based platforms (including ours) uses ArmPlatformPkg/Bds as the Boot 
> Device Selection source.
> 
> However, for such platforms, NetLib support can sometimes be optional for the 
> BDS stage,
> causing compilation to break.
> 
> Can we make NetLib compile under a flag in such cases, to prevent compilation 
> failure in the generic ARM Bds.
> 
> Any pointers?
> 

Usually we solve this problem in the edk2 with a NULL version of the lib, and 
the DSC points at that. This means all the code in the driver/applications 
compiles at all times. 

There are examples of NULL implementations of the libraries in the edk2:

https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdePkg/Library/BaseDebugLibNull/DebugLib.c
https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdePkg/Library/BasePeCoffExtraActionLibNull/PeCoffExtraActionLib.c
https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c
…

Thanks,

Andrew Fish

> Regards,
> Bhupesh
> 
> 
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls. 
> Build a bridge from your legacy apps to the future.
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to