Fixed EDKT538; Removed the some code generation for UEFI_APPLICATION type of module. Refer to EDKT538 for details.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2471 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jwang36 2007-03-15 02:47:24 +00:00
parent e5f461a850
commit 8c8b94e252
1 changed files with 6 additions and 3 deletions

View File

@ -430,8 +430,9 @@ public class AutoGen {
// DriverBinding/ComponentName/DriverConfiguration/DriverDialog
// to AutoGen.c
//
ExternsDriverBindingToAutoGenC(fileBuffer);
if (!moduleId.getModuleType().equalsIgnoreCase("UEFI_APPLICATION")) {
ExternsDriverBindingToAutoGenC(fileBuffer);
}
//
// Write DriverExitBootServicesEvent/DriverSetVirtualAddressMapEvent
@ -1133,6 +1134,9 @@ public class AutoGen {
fileBuffer.append("}\r\n\r\n");
}
if (CommonDefinition.getModuleType(typeStr) == CommonDefinition.ModuleTypeUefiApplication) {
break;
}
//
// Add ModuleUnloadImage for DxeDriver and UefiDriver module type.
//
@ -1950,7 +1954,6 @@ public class AutoGen {
case CommonDefinition.ModuleTypeDxeRuntimeDriver:
case CommonDefinition.ModuleTypeDxeSalDriver:
case CommonDefinition.ModuleTypeUefiDriver:
case CommonDefinition.ModuleTypeUefiApplication:
//
// If moduleType is one of above, call setVirtualAddressToAutogenC,
// and setExitBootServiceToAutogenC.