Fixed EDKT549 by adding code to check if the module is binary or not before generating AutoGen.h/.c

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2580 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jwang36 2007-04-26 02:53:19 +00:00
parent 627c1d22d9
commit a6a0e0246f
1 changed files with 5 additions and 3 deletions

View File

@ -623,10 +623,12 @@ public class GenBuildTask extends Ant {
private void applyBuild(String buildTarget, String buildTagname, FpdModuleIdentification fpdModuleId) throws EdkException {
//
// Call AutoGen to generate AutoGen.c and AutoGen.h
// Call AutoGen to generate AutoGen.c and AutoGen.h for non-binary module
//
AutoGen autogen = new AutoGen(getProject().getProperty("FV_DIR"), getProject().getProperty("DEST_DIR_DEBUG"), fpdModuleId.getModule(),fpdModuleId.getArch(), saq, parentId);
autogen.genAutogen();
if (!fpdModuleId.getModule().isBinary()) {
AutoGen autogen = new AutoGen(getProject().getProperty("FV_DIR"), getProject().getProperty("DEST_DIR_DEBUG"), fpdModuleId.getModule(),fpdModuleId.getArch(), saq, parentId);
autogen.genAutogen();
}
//
// Get compiler flags