[apps/tidep0079.git] / EC_Master_SysBios_Am572x / Workspace / SYSBIOS_AM57xx / emllICSS / Debug / configPkg / package.bld
diff --git a/EC_Master_SysBios_Am572x/Workspace/SYSBIOS_AM57xx/emllICSS/Debug/configPkg/package.bld b/EC_Master_SysBios_Am572x/Workspace/SYSBIOS_AM57xx/emllICSS/Debug/configPkg/package.bld
--- /dev/null
@@ -0,0 +1,79 @@
+/* THIS IS A GENERATED FILE -- DO NOT EDIT */
+
+var targ = xdc.module('gnu.targets.arm.A15F');
+/* configuro was told the platform explicitly */
+var platform = 'ti.platforms.idkAM572X';
+
+/* decide whether to make an assembly or an executable */
+var makeAssembly = false;
+
+
+var Executable = xdc.module('xdc.bld.Executable');
+
+var exeOpts = new Executable.Attrs({
+ cfgScript: 'C:/Users/a0133185/Desktop/TechSupport/Industrial/Acontis_EC_master/Porting_PSDK4.3/EC_Master_SysBios_Am572x/Workspace/SYSBIOS_AM57xx/EcMasterDemo/EcMaster.cfg',
+ profile: 'debug',
+ cfgHome: 'configPkg',
+ xsopts: "-DBOARD=idkAM572x",
+});
+
+exeOpts.cfgArgs = 'null';
+exeOpts.cfgArgsEncoded = true;
+
+var exe = Pkg[makeAssembly ? 'addAssembly': 'addExecutable'](
+ 'EcMaster',
+ targ,
+ platform,
+ exeOpts
+);
+
+/*
+ * Generate the compiler.opt file
+ * Do this here instead of during the initial creation of the configuro
+ * package, because the contents of any config.bld script are unknown
+ * at that time. Config.bld can't be executed until the XDC build phase.
+ */
+if (makeAssembly) {
+ var suffix = targ.dllExt || '.p' + targ.suffix;
+}
+else {
+ var suffix = '.p' + targ.suffix;
+}
+
+var thisObj = {
+ cfg: '../../EcMasterDemo/EcMaster.cfg',
+ outputPath: 'C:/Users/a0133185/Desktop/TechSupport/Industrial/Acontis_EC_master/Porting_PSDK4.3/EC_Master_SysBios_Am572x/Workspace/SYSBIOS_AM57xx/emllICSS/Debug/configPkg',
+ exeName: 'EcMaster' + suffix,
+ exeIntName: 'EcMaster' + suffix.replace('.', '_'),
+ targ: targ,
+ linkerCommandFile: 'linker.cmd',
+ compilerOptFile: 'compiler.opt',
+ compilerDefsFile: 'compiler.opt' + ".defs",
+ makeAssembly: makeAssembly
+};
+var tmpl = xdc.loadTemplate('xdc/tools/configuro/template/compiler.opt.xdt');
+tmpl.genFile('compiler.opt', thisObj, [], false);
+
+/*
+ * Generate the custom makefile.
+ */
+var tmpl = xdc.loadTemplate('xdc/tools/configuro/template/' +
+ (makeAssembly? 'custom.mak.asm.xdt' : 'custom.mak.exe.xdt'));
+tmpl.genFile('custom.mak', thisObj, [], false);
+Pkg.makeEpilogue = "include custom.mak";
+
+/*
+ * Generate the package script.
+ */
+var tmpl = xdc.loadTemplate('xdc/tools/configuro/template/package.xs.xdt');
+tmpl.genFile('package.xs', thisObj, [], false);
+
+if (makeAssembly) {
+/*
+ * Generate the linker options into a staging file, so that the presence or
+ * age of the advertised linker command file can be the makefile trigger to
+ * rebuild the package from the user's config script.
+ */
+ var tmpl = xdc.loadTemplate('xdc/tools/configuro/template/linker.cmd.asm.xdt');
+ tmpl.genFile('linker.cmd.cp', thisObj, [], false);
+}