mirror of https://github.com/acidanthera/audk.git
Replace all tab to spaces.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@287 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
00b7af13f2
commit
32648c62db
File diff suppressed because it is too large
Load Diff
|
@ -190,13 +190,13 @@ public class PCDAutoGenAction extends BuildAction {
|
|||
}
|
||||
}
|
||||
|
||||
if (moduleName.equalsIgnoreCase("PcdPeim")) {
|
||||
hAutoGenString += dbManager.PcdPeimHString;
|
||||
cAutoGenString += dbManager.PcdPeimCString;
|
||||
} else if (moduleName.equalsIgnoreCase("PcdDxe")) {
|
||||
hAutoGenString += dbManager.PcdDxeHString;
|
||||
cAutoGenString += dbManager.PcdDxeCString;
|
||||
}
|
||||
if (moduleName.equalsIgnoreCase("PcdPeim")) {
|
||||
hAutoGenString += dbManager.PcdPeimHString;
|
||||
cAutoGenString += dbManager.PcdPeimCString;
|
||||
} else if (moduleName.equalsIgnoreCase("PcdDxe")) {
|
||||
hAutoGenString += dbManager.PcdDxeHString;
|
||||
cAutoGenString += dbManager.PcdDxeCString;
|
||||
}
|
||||
|
||||
ActionMessage.debug(this,
|
||||
"Module " + moduleName + "'s PCD header file:\r\n" + hAutoGenString + "\r\n"
|
||||
|
@ -527,7 +527,7 @@ public class PCDAutoGenAction extends BuildAction {
|
|||
**/
|
||||
public static void main(String argv[]) {
|
||||
|
||||
String WorkSpace = "G:/edk2";
|
||||
String WorkSpace = "G:/edk2";
|
||||
String logFilePath = WorkSpace + "/EdkNt32Pkg/Nt32.fpd";
|
||||
|
||||
//
|
||||
|
@ -552,13 +552,13 @@ public class PCDAutoGenAction extends BuildAction {
|
|||
// Then execute the PCDAuotoGenAction to get generated Autogen.h and Autogen.c
|
||||
//
|
||||
PCDAutoGenAction autogenAction = new PCDAutoGenAction("PcdDxe",
|
||||
false
|
||||
false
|
||||
);
|
||||
autogenAction.execute();
|
||||
autogenAction.execute();
|
||||
|
||||
System.out.println(autogenAction.OutputH());
|
||||
System.out.println("WQWQWQWQWQ");
|
||||
System.out.println(autogenAction.OutputC());
|
||||
System.out.println(autogenAction.OutputH());
|
||||
System.out.println("WQWQWQWQWQ");
|
||||
System.out.println(autogenAction.OutputC());
|
||||
|
||||
|
||||
System.out.println (autogenAction.hAutoGenString);
|
||||
|
|
|
@ -44,9 +44,9 @@ public class MemoryDatabaseManager {
|
|||
private static String logFileName = null;
|
||||
|
||||
public static String PcdPeimHString = "";
|
||||
public static String PcdPeimCString = "";
|
||||
public static String PcdDxeHString = "";
|
||||
public static String PcdDxeCString = "";
|
||||
public static String PcdPeimCString = "";
|
||||
public static String PcdDxeHString = "";
|
||||
public static String PcdDxeCString = "";
|
||||
|
||||
/**
|
||||
Constructure function
|
||||
|
@ -174,8 +174,8 @@ public class MemoryDatabaseManager {
|
|||
List<UsageInstance> usageInstanceArray = null;
|
||||
UsageInstance usageInstance = null;
|
||||
|
||||
//pei = new ArrayList<Token>();
|
||||
//dxe = new ArrayList<Token>();
|
||||
//pei = new ArrayList<Token>();
|
||||
//dxe = new ArrayList<Token>();
|
||||
|
||||
for (index = 0; index < tokenArrayList.size(); index++) {
|
||||
boolean found = false;
|
||||
|
@ -199,25 +199,25 @@ public class MemoryDatabaseManager {
|
|||
usageInstance =(UsageInstance) usageInstanceArray.get(usageInstanceIndex);
|
||||
if (CommonDefinition.isPeiPhaseComponent(usageInstance.componentType)) {
|
||||
pei.add(token);
|
||||
found = true;
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// If no PEI components reference the PCD entry, we insert it to DXE list
|
||||
//
|
||||
if (!found) {
|
||||
dxe.add(token);
|
||||
}
|
||||
//
|
||||
// If no PEI components reference the PCD entry, we insert it to DXE list
|
||||
//
|
||||
if (!found) {
|
||||
dxe.add(token);
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
Get all PCD record for a module according to module's name.
|
||||
|
||||
@param moduleName the name of module.
|
||||
|
|
|
@ -258,9 +258,9 @@ public class Token {
|
|||
}
|
||||
}
|
||||
|
||||
public String getPrimaryKeyString () {
|
||||
return cName + "_" + tokenSpaceName.toString().replace('-', '_');
|
||||
}
|
||||
public String getPrimaryKeyString () {
|
||||
return cName + "_" + tokenSpaceName.toString().replace('-', '_');
|
||||
}
|
||||
|
||||
/**
|
||||
Judge datumType is valid
|
||||
|
@ -645,13 +645,13 @@ public class Token {
|
|||
//
|
||||
public boolean hasDefaultValue () {
|
||||
|
||||
if (hiiEnabled) {
|
||||
return true;
|
||||
}
|
||||
if (hiiEnabled) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (vpdEnabled) {
|
||||
return true;
|
||||
}
|
||||
if (vpdEnabled) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (datum.toString().compareTo("NoDefault") == 0) {
|
||||
return false;
|
||||
|
@ -660,21 +660,21 @@ public class Token {
|
|||
return true;
|
||||
}
|
||||
|
||||
public boolean isStringType () {
|
||||
String str = datum.toString();
|
||||
public boolean isStringType () {
|
||||
String str = datum.toString();
|
||||
|
||||
if (datumType == Token.DATUM_TYPE.POINTER &&
|
||||
str.startsWith("L\"") &&
|
||||
str.endsWith("\"")) {
|
||||
return true;
|
||||
}
|
||||
if (datumType == Token.DATUM_TYPE.POINTER &&
|
||||
str.startsWith("L\"") &&
|
||||
str.endsWith("\"")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public String getStringTypeString () {
|
||||
return datum.toString().substring(2, datum.toString().length() - 1);
|
||||
}
|
||||
public String getStringTypeString () {
|
||||
return datum.toString().substring(2, datum.toString().length() - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue