Temporary workaround--determine the target architecture from an environment variable ARCH. Optionally, you can set the variable to IA32, X64 or IPF so that the correct GenFvImage will be called.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@457 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
bbahnsen
2006-06-09 17:07:09 +00:00
parent 302e0e4a1f
commit 8742c000dc

View File

@@ -56,17 +56,24 @@ public class GenFvImageTask extends Task implements EfiDefine{
path = path + File.separatorChar; path = path + File.separatorChar;
} }
if (arch.equalsIgnoreCase("")){ // FIXME arch should be passed via schema attributes.
command = path + "GenFvImage"; arch=System.getenv("ARCH");
if (arch == null) {
arch = "";
} }
if (arch.equalsIgnoreCase("ia32")){ // FIXME end
command = path + "GenFvImage_IA32";
if (arch.equalsIgnoreCase("IA32")){
command = path + "GenFvImage_Ia32";
} }
if (arch.equalsIgnoreCase("x64")){ else if (arch.equalsIgnoreCase("X64")){
command = path + "GenFvImage_X64"; command = path + "GenFvImage_X64";
} }
if (arch.equalsIgnoreCase("ipf")){ else if (arch.equalsIgnoreCase("IPF")){
command = path + "GenFvImage_IPF"; command = path + "GenFvImage_Ipf";
}
else {
command = path + "GenFvImage";
} }
String argument = infFile; String argument = infFile;
@@ -151,4 +158,4 @@ public class GenFvImageTask extends Task implements EfiDefine{
public void setArch(String arch) { public void setArch(String arch) {
this.arch = arch; this.arch = arch;
} }
} }