[if gte mso 9]>

[edk2] HiiAddPackages

Subject: [edk2] HiiAddPackages

From: Ben Schroeder <bensch@mellanox.com>

To: "edk2-devel@lists.sourceforge.net" <edk2-devel@lists.sourceforge.net>

Date: 2013-10-23 19:09:35

Hi everyone,

 

I am working on a UEFI driver than install 2 HII formsets, 1 for each physical port on the network device.

Let me be clear it is one and the same VFR formset file, that is installed once for each port. Total of two times.

HII ConfigAccessProtocol is installed after installing the necessary packages.

 

Each Hii package (below) is installed under a different GUID and different handle.
However the Strings and Forms file are the same for both calls of HiiAddPackages.

Is it necessary to use HiiAddPackages to add the Forms and Strings file twice like I have done below? Because I am having some compatibility issues with some of the vendors vendors.

 

HiiAddPackages (

   HiiPriv->HiiVariableGuid,

   PortPriv->ControllerHandle,

   MlxStrings,

   FormsBin,

   NULL

);

 

I believe HiiVariableGuid and ControllerHandle are mandatory in my situation for the system to distinguish two different instances of the same formset.

 

Is this the correct way or am I missing something?

 

Thanks,

Ben.