index ef7fb4d00fd50c28accd8c126feb3d1050fc19b0..55fa300cab9c10836a7d2f42666155cf8332c2e2 100644 (file)
var Build = xdc.module("ti.sdo.utils.Build");
var tplt = "";
-if ((BIOS.libType == BIOS.LibType_Custom) &&
- (Build.$private.outputDir != undefined)) {
+if (((BIOS.libType == BIOS.LibType_Custom) ||
+ (BIOS.libType == BIOS.LibType_Debug)) &&
+ (Build.$private.outputDir != undefined)) {
if (Build.doBuild) {
- /* generate makefile from makefile.xdt
- * $args[0] = the RTSC target, so the makefile knows how to run the
- * compiler and archiver
+ /* generate makefile from template
+ * $args[0] = the RTSC target, so the makefile knows how to
+ * run the compiler and archiver
*/
- print("generating custom ti.sdo.utils library makefile ... ");
+ print("generating custom ti.sdo.utils library makefile ...");
if (Program.build.target.$name.match(/gnu/) &&
- (Program.build.target.name.match(/A15/) ||
+ (Program.build.target.name.match(/M3/) ||
+ Program.build.target.name.match(/M4/) ||
+ Program.build.target.name.match(/M4F/) ||
+ Program.build.target.name.match(/A15/) ||
Program.build.target.name.match(/A9/) ||
Program.build.target.name.match(/A8/))) {
tplt = xdc.loadTemplate(this.$package.packageBase +
"/makefile_gccArmLto.xdt");
}
+ else if (Program.build.target.$name.match(/iar/)) {
+ throw new Error("IAR not supported by IPC");
+ }
else {
tplt = xdc.loadTemplate(this.$package.packageBase +
"/makefile.xdt");
tplt.genFile(Build.$private.outputDir + "/makefile", this,
[Program.build.target]);
}
+%%}