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")) {
|
if (moduleName.equalsIgnoreCase("PcdPeim")) {
|
||||||
hAutoGenString += dbManager.PcdPeimHString;
|
hAutoGenString += dbManager.PcdPeimHString;
|
||||||
cAutoGenString += dbManager.PcdPeimCString;
|
cAutoGenString += dbManager.PcdPeimCString;
|
||||||
} else if (moduleName.equalsIgnoreCase("PcdDxe")) {
|
} else if (moduleName.equalsIgnoreCase("PcdDxe")) {
|
||||||
hAutoGenString += dbManager.PcdDxeHString;
|
hAutoGenString += dbManager.PcdDxeHString;
|
||||||
cAutoGenString += dbManager.PcdDxeCString;
|
cAutoGenString += dbManager.PcdDxeCString;
|
||||||
}
|
}
|
||||||
|
|
||||||
ActionMessage.debug(this,
|
ActionMessage.debug(this,
|
||||||
"Module " + moduleName + "'s PCD header file:\r\n" + hAutoGenString + "\r\n"
|
"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[]) {
|
public static void main(String argv[]) {
|
||||||
|
|
||||||
String WorkSpace = "G:/edk2";
|
String WorkSpace = "G:/edk2";
|
||||||
String logFilePath = WorkSpace + "/EdkNt32Pkg/Nt32.fpd";
|
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
|
// Then execute the PCDAuotoGenAction to get generated Autogen.h and Autogen.c
|
||||||
//
|
//
|
||||||
PCDAutoGenAction autogenAction = new PCDAutoGenAction("PcdDxe",
|
PCDAutoGenAction autogenAction = new PCDAutoGenAction("PcdDxe",
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
autogenAction.execute();
|
autogenAction.execute();
|
||||||
|
|
||||||
System.out.println(autogenAction.OutputH());
|
System.out.println(autogenAction.OutputH());
|
||||||
System.out.println("WQWQWQWQWQ");
|
System.out.println("WQWQWQWQWQ");
|
||||||
System.out.println(autogenAction.OutputC());
|
System.out.println(autogenAction.OutputC());
|
||||||
|
|
||||||
|
|
||||||
System.out.println (autogenAction.hAutoGenString);
|
System.out.println (autogenAction.hAutoGenString);
|
||||||
|
|
|
@ -44,9 +44,9 @@ public class MemoryDatabaseManager {
|
||||||
private static String logFileName = null;
|
private static String logFileName = null;
|
||||||
|
|
||||||
public static String PcdPeimHString = "";
|
public static String PcdPeimHString = "";
|
||||||
public static String PcdPeimCString = "";
|
public static String PcdPeimCString = "";
|
||||||
public static String PcdDxeHString = "";
|
public static String PcdDxeHString = "";
|
||||||
public static String PcdDxeCString = "";
|
public static String PcdDxeCString = "";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Constructure function
|
Constructure function
|
||||||
|
@ -174,8 +174,8 @@ public class MemoryDatabaseManager {
|
||||||
List<UsageInstance> usageInstanceArray = null;
|
List<UsageInstance> usageInstanceArray = null;
|
||||||
UsageInstance usageInstance = null;
|
UsageInstance usageInstance = null;
|
||||||
|
|
||||||
//pei = new ArrayList<Token>();
|
//pei = new ArrayList<Token>();
|
||||||
//dxe = new ArrayList<Token>();
|
//dxe = new ArrayList<Token>();
|
||||||
|
|
||||||
for (index = 0; index < tokenArrayList.size(); index++) {
|
for (index = 0; index < tokenArrayList.size(); index++) {
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
|
@ -199,25 +199,25 @@ public class MemoryDatabaseManager {
|
||||||
usageInstance =(UsageInstance) usageInstanceArray.get(usageInstanceIndex);
|
usageInstance =(UsageInstance) usageInstanceArray.get(usageInstanceIndex);
|
||||||
if (CommonDefinition.isPeiPhaseComponent(usageInstance.componentType)) {
|
if (CommonDefinition.isPeiPhaseComponent(usageInstance.componentType)) {
|
||||||
pei.add(token);
|
pei.add(token);
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// If no PEI components reference the PCD entry, we insert it to DXE list
|
// If no PEI components reference the PCD entry, we insert it to DXE list
|
||||||
//
|
//
|
||||||
if (!found) {
|
if (!found) {
|
||||||
dxe.add(token);
|
dxe.add(token);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get all PCD record for a module according to module's name.
|
Get all PCD record for a module according to module's name.
|
||||||
|
|
||||||
@param moduleName the name of module.
|
@param moduleName the name of module.
|
||||||
|
|
|
@ -258,9 +258,9 @@ public class Token {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPrimaryKeyString () {
|
public String getPrimaryKeyString () {
|
||||||
return cName + "_" + tokenSpaceName.toString().replace('-', '_');
|
return cName + "_" + tokenSpaceName.toString().replace('-', '_');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Judge datumType is valid
|
Judge datumType is valid
|
||||||
|
@ -645,13 +645,13 @@ public class Token {
|
||||||
//
|
//
|
||||||
public boolean hasDefaultValue () {
|
public boolean hasDefaultValue () {
|
||||||
|
|
||||||
if (hiiEnabled) {
|
if (hiiEnabled) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vpdEnabled) {
|
if (vpdEnabled) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (datum.toString().compareTo("NoDefault") == 0) {
|
if (datum.toString().compareTo("NoDefault") == 0) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -660,21 +660,21 @@ public class Token {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isStringType () {
|
public boolean isStringType () {
|
||||||
String str = datum.toString();
|
String str = datum.toString();
|
||||||
|
|
||||||
if (datumType == Token.DATUM_TYPE.POINTER &&
|
if (datumType == Token.DATUM_TYPE.POINTER &&
|
||||||
str.startsWith("L\"") &&
|
str.startsWith("L\"") &&
|
||||||
str.endsWith("\"")) {
|
str.endsWith("\"")) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getStringTypeString () {
|
public String getStringTypeString () {
|
||||||
return datum.toString().substring(2, datum.toString().length() - 1);
|
return datum.toString().substring(2, datum.toString().length() - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue