]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenFvImageTask.java
One GenFvImage can handle all archs now.
[mirror_edk2.git] / Tools / Source / FrameworkTasks / org / tianocore / framework / tasks / GenFvImageTask.java
index f9340758b31931e021e058a33e536f3d940ede39..ae47ec7ff40b99d4cf7b3e9168645b3c227eeab1 100644 (file)
@@ -34,10 +34,6 @@ public class GenFvImageTask extends Task implements EfiDefine{
     /// 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
@@ -56,25 +52,8 @@ public class GenFvImageTask extends Task implements EfiDefine{
             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
@@ -138,24 +117,4 @@ public class GenFvImageTask extends Task implements EfiDefine{
         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