/// The name of input inf file\r
///\r
private String infFile="";\r
- ///\r
- /// The target architecture.\r
- ///\r
- private String arch="";\r
\r
/**\r
execute\r
path = path + File.separatorChar;\r
}\r
\r
- // FIXME arch should be passed via schema attributes.\r
- arch=System.getenv("ARCH");\r
- if (arch == null) {\r
- arch = "";\r
- }\r
- // FIXME end\r
+ command = path + "GenFvImage";\r
\r
- if (arch.equalsIgnoreCase("IA32")){\r
- command = path + "GenFvImage_Ia32";\r
- } \r
- else if (arch.equalsIgnoreCase("X64")){\r
- command = path + "GenFvImage_X64";\r
- }\r
- else if (arch.equalsIgnoreCase("IPF")){\r
- command = path + "GenFvImage_Ipf";\r
- }\r
- else {\r
- command = path + "GenFvImage";\r
- }\r
String argument = infFile;\r
\r
try {\r
this.infFile = "-I " + infFile;\r
}\r
\r
- /**\r
- getArch\r
- \r
- This function is to get class member of arch.\r
- @return The target architecture.\r
- **/\r
- public String getArch() {\r
- return arch;\r
- }\r
- \r
- /**\r
- setArch\r
- \r
- This function is to set class member of arch. \r
- \r
- @param arch The target architecture.\r
- **/\r
- public void setArch(String arch) {\r
- this.arch = arch;\r
- } \r
}\r