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
1 changed files with 15 additions and 8 deletions

View File

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