summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-26 06:04:40 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-26 06:04:40 +0000
commit149127db682552971634ad1017c522808367acc3 (patch)
tree516e8f3c512d1687256ae776d64911bea72e1a4a /Tools
parent60ad3479983bc1a4862f130ae09259a4092b1528 (diff)
downloadedk2-platforms-149127db682552971634ad1017c522808367acc3.tar.xz
Move the entrypoint function declarations to AutoGen.h for sake of Intel compiler
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2324 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r--Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java90
1 files changed, 45 insertions, 45 deletions
diff --git a/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java b/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java
index b7d6ec4e39..98737ba2bf 100644
--- a/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java
+++ b/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java
@@ -784,13 +784,13 @@ public class AutoGen {
if (entryPointList == null ||entryPointList.length != 1 ) {
throw new AutoGenException("Module type = 'PEI_CORE', can have only one module entry point!");
} else {
- fileBuffer.append("EFI_STATUS\r\n");
- fileBuffer.append("EFIAPI\r\n");
- fileBuffer.append(entryPointList[0]);
- fileBuffer.append(" (\r\n");
- fileBuffer.append(" IN EFI_PEI_STARTUP_DESCRIPTOR *PeiStartupDescriptor,\r\n");
- fileBuffer.append(" IN VOID *OldCoreData\r\n");
- fileBuffer.append(" );\r\n\r\n");
+ functionDeclarations.append("EFI_STATUS\r\n");
+ functionDeclarations.append("EFIAPI\r\n");
+ functionDeclarations.append(entryPointList[0]);
+ functionDeclarations.append(" (\r\n");
+ functionDeclarations.append(" IN EFI_PEI_STARTUP_DESCRIPTOR *PeiStartupDescriptor,\r\n");
+ functionDeclarations.append(" IN VOID *OldCoreData\r\n");
+ functionDeclarations.append(" );\r\n\r\n");
fileBuffer.append("EFI_STATUS\r\n");
fileBuffer.append("EFIAPI\r\n");
@@ -811,12 +811,12 @@ public class AutoGen {
if (entryPointList == null || entryPointList.length != 1) {
throw new AutoGenException("Module type = 'DXE_CORE', can have only one module entry point!");
} else {
- fileBuffer.append("VOID\r\n");
- fileBuffer.append("EFIAPI\r\n");
- fileBuffer.append(entryPointList[0]);
- fileBuffer.append(" (\r\n");
- fileBuffer.append(" IN VOID *HobStart\r\n");
- fileBuffer.append(" );\r\n\r\n");
+ functionDeclarations.append("VOID\r\n");
+ functionDeclarations.append("EFIAPI\r\n");
+ functionDeclarations.append(entryPointList[0]);
+ functionDeclarations.append(" (\r\n");
+ functionDeclarations.append(" IN VOID *HobStart\r\n");
+ functionDeclarations.append(" );\r\n\r\n");
fileBuffer.append("VOID\r\n");
fileBuffer.append("EFIAPI\r\n");
@@ -847,13 +847,13 @@ public class AutoGen {
break;
}
for (int i = 0; i < entryPointList.length; i++) {
- fileBuffer.append("EFI_STATUS\r\n");
- fileBuffer.append("EFIAPI\r\n");
- fileBuffer.append(entryPointList[i]);
- fileBuffer.append(" (\r\n");
- fileBuffer.append(" IN EFI_FFS_FILE_HEADER *FfsHeader,\r\n");
- fileBuffer.append(" IN EFI_PEI_SERVICES **PeiServices\r\n");
- fileBuffer.append(" );\r\n");
+ functionDeclarations.append("EFI_STATUS\r\n");
+ functionDeclarations.append("EFIAPI\r\n");
+ functionDeclarations.append(entryPointList[i]);
+ functionDeclarations.append(" (\r\n");
+ functionDeclarations.append(" IN EFI_FFS_FILE_HEADER *FfsHeader,\r\n");
+ functionDeclarations.append(" IN EFI_PEI_SERVICES **PeiServices\r\n");
+ functionDeclarations.append(" );\r\n");
entryPointCount++;
}
@@ -913,13 +913,13 @@ public class AutoGen {
} else {
for (int i = 0; i < entryPointList.length; i++) {
- fileBuffer.append("EFI_STATUS\r\n");
- fileBuffer.append("EFIAPI\r\n");
- fileBuffer.append(entryPointList[i]);
- fileBuffer.append(" (\r\n");
- fileBuffer.append(" IN EFI_HANDLE ImageHandle,\r\n");
- fileBuffer.append(" IN EFI_SYSTEM_TABLE *SystemTable\r\n");
- fileBuffer.append(" );\r\n");
+ functionDeclarations.append("EFI_STATUS\r\n");
+ functionDeclarations.append("EFIAPI\r\n");
+ functionDeclarations.append(entryPointList[i]);
+ functionDeclarations.append(" (\r\n");
+ functionDeclarations.append(" IN EFI_HANDLE ImageHandle,\r\n");
+ functionDeclarations.append(" IN EFI_SYSTEM_TABLE *SystemTable\r\n");
+ functionDeclarations.append(" );\r\n");
entryPointCount++;
}
fileBuffer.append("GLOBAL_REMOVE_IF_UNREFERENCED const UINT8 _gDriverEntryPointCount = ");
@@ -970,11 +970,11 @@ public class AutoGen {
unloadImageCount = 0;
if (unloadImageList != null) {
for (int i = 0; i < unloadImageList.length; i++) {
- fileBuffer.append("EFI_STATUS\r\n");
- fileBuffer.append(unloadImageList[i]);
- fileBuffer.append(" (\r\n");
- fileBuffer.append(" IN EFI_HANDLE ImageHandle\r\n");
- fileBuffer.append(" );\r\n");
+ functionDeclarations.append("EFI_STATUS\r\n");
+ functionDeclarations.append(unloadImageList[i]);
+ functionDeclarations.append(" (\r\n");
+ functionDeclarations.append(" IN EFI_HANDLE ImageHandle\r\n");
+ functionDeclarations.append(" );\r\n");
unloadImageCount++;
}
}
@@ -1045,13 +1045,13 @@ public class AutoGen {
} else {
for (int i = 0; i < entryPointList.length; i++) {
- fileBuffer.append("EFI_STATUS\r\n");
- fileBuffer.append("EFIAPI\r\n");
- fileBuffer.append(entryPointList[i]);
- fileBuffer.append(" (\r\n");
- fileBuffer.append(" IN EFI_HANDLE ImageHandle,\r\n");
- fileBuffer.append(" IN EFI_SYSTEM_TABLE *SystemTable\r\n");
- fileBuffer.append(" );\r\n");
+ functionDeclarations.append("EFI_STATUS\r\n");
+ functionDeclarations.append("EFIAPI\r\n");
+ functionDeclarations.append(entryPointList[i]);
+ functionDeclarations.append(" (\r\n");
+ functionDeclarations.append(" IN EFI_HANDLE ImageHandle,\r\n");
+ functionDeclarations.append(" IN EFI_SYSTEM_TABLE *SystemTable\r\n");
+ functionDeclarations.append(" );\r\n");
entryPointCount++;
}
@@ -1129,12 +1129,12 @@ public class AutoGen {
unloadImageCount = 0;
if (unloadImageList != null) {
for (int i = 0; i < unloadImageList.length; i++) {
- fileBuffer.append("EFI_STATUS\r\n");
- fileBuffer.append("EFIAPI\r\n");
- fileBuffer.append(unloadImageList[i]);
- fileBuffer.append(" (\r\n");
- fileBuffer.append(" IN EFI_HANDLE ImageHandle\r\n");
- fileBuffer.append(" );\r\n");
+ functionDeclarations.append("EFI_STATUS\r\n");
+ functionDeclarations.append("EFIAPI\r\n");
+ functionDeclarations.append(unloadImageList[i]);
+ functionDeclarations.append(" (\r\n");
+ functionDeclarations.append(" IN EFI_HANDLE ImageHandle\r\n");
+ functionDeclarations.append(" );\r\n");
unloadImageCount++;
}
}