Add Build Macro to build SEC modules.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1784 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -379,7 +379,7 @@ public class FfsProcess {
|
||||
if (fileName == null) {
|
||||
ele.setAttribute("file", "${DEST_DIR_OUTPUT}" + File.separatorChar + basename + getSectionExt(type));
|
||||
} else {
|
||||
ele.setAttribute("file", "${PLATFORM_DIR}" + File.separatorChar + fileName);
|
||||
ele.setAttribute("file", fileName);
|
||||
}
|
||||
root.appendChild(ele);
|
||||
} else {
|
||||
@ -390,7 +390,7 @@ public class FfsProcess {
|
||||
if (fileName == null) {
|
||||
ele.setAttribute("fileName", "${DEST_DIR_OUTPUT}" + File.separatorChar + basename + getSectionExt(type));
|
||||
} else {
|
||||
ele.setAttribute("fileName", "${PLATFORM_DIR}" + File.separatorChar + fileName);
|
||||
ele.setAttribute("fileName", fileName);
|
||||
}
|
||||
root.appendChild(ele);
|
||||
}
|
||||
|
@ -77,9 +77,9 @@ public class FrameworkBuildTask extends Task{
|
||||
|
||||
private Set<File> msaFiles = new LinkedHashSet<File>();
|
||||
|
||||
//
|
||||
// This is only for none-multi-thread build to reduce overriding message
|
||||
//
|
||||
///
|
||||
/// This is only for none-multi-thread build to reduce overriding message
|
||||
///
|
||||
public static Hashtable<String, String> originalProperties = new Hashtable<String, String>();
|
||||
|
||||
String toolsDefFilename = ToolDefinitions.DEFAULT_TOOLS_DEF_FILE_PATH;
|
||||
|
@ -465,7 +465,11 @@ public class ModuleBuildFileGenerator {
|
||||
String[] list = fp.getGenSectionElements(document, "${BASE_NAME}", fpdModuleId.getModule().getGuid(), targetFilename);
|
||||
|
||||
for (int i = 0; i < list.length; i++) {
|
||||
Element ele = document.createElement(list[i]);
|
||||
String sectiontype = list[i];
|
||||
if (sectiontype.equalsIgnoreCase("EFI_SECTION_RAW") && project.getProperty("MODULE_TYPE").equalsIgnoreCase("SEC")) {
|
||||
sectiontype += "_SEC";
|
||||
}
|
||||
Element ele = document.createElement(sectiontype);
|
||||
ele.setAttribute("FILEPATH", ".");
|
||||
ele.setAttribute("FILENAME", "${BASE_NAME}");
|
||||
root.appendChild(ele);
|
||||
|
@ -337,10 +337,10 @@ public class FpdParserTask extends Task {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
This method is used for Single Module Build.
|
||||
|
||||
|
||||
@throws BuildException
|
||||
FPD file is not valid.
|
||||
**/
|
||||
|
Reference in New Issue
Block a user