X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FJava%2FSource%2FContextTool%2Forg%2Ftianocore%2Fcontext%2FTargetFile.java;fp=Tools%2FJava%2FSource%2FContextTool%2Forg%2Ftianocore%2Fcontext%2FTargetFile.java;h=06a031c8bb736fd01a8c831a68d9b30ba15aee61;hp=76c4b183d6174215c76aeba41a41ef60f6a1a975;hb=d3f458486e33d78de1aa9fc2c347f2d20a31b4b6;hpb=2fcfed38cbdd18fdda427588fe40718a374af6e6 diff --git a/Tools/Java/Source/ContextTool/org/tianocore/context/TargetFile.java b/Tools/Java/Source/ContextTool/org/tianocore/context/TargetFile.java index 76c4b183d6..06a031c8bb 100644 --- a/Tools/Java/Source/ContextTool/org/tianocore/context/TargetFile.java +++ b/Tools/Java/Source/ContextTool/org/tianocore/context/TargetFile.java @@ -152,7 +152,7 @@ public class TargetFile { bw.newLine(); } else { // - //modify at the first time, and there should be *ACTIVE_PLATFORM*=* in the line + //modify at the first time, and there should be "*ACTIVE_PLATFORM*=*" in the line // if (textLine.indexOf("ACTIVE_PLATFORM") != -1) { if(pflag == true){ @@ -418,26 +418,6 @@ public class TargetFile { return true; } - private static String convertStr(String str){ - String convertStr = null; - - if( str.compareTo("-p") == 0 ){ - convertStr = "ACTIVE_PLATFORM"; - }else if( str.compareTo("-a") == 0){ - convertStr = "TARGET_ARCH"; - }else if( str.compareTo("-t") == 0){ - convertStr = "TARGET"; - }else if( str.compareTo("-c") == 0){ - convertStr = "TOOL_CHAIN_CONF"; - }else if( str.compareTo("-n") == 0){ - convertStr = "TOOL_CHAIN_TAG"; - }else if( str.compareTo("-m") == 0){ - convertStr = "MAX_CONCURRENT_THREAD_NUMBER"; - } - - return convertStr; - } - /** * according to user's input args, write the file directly