]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/tidep0079.git/blob - EC_Master_SysBios_Am572x_20170214/Workspace/SYSBIOS_AM57xx/EcMasterDemo/Release/configPkg/package.bld
EC-Mater + TTS (PDK1.0.6 PSDK3.3.0.4)
[apps/tidep0079.git] / EC_Master_SysBios_Am572x_20170214 / Workspace / SYSBIOS_AM57xx / EcMasterDemo / Release / configPkg / package.bld
1 /* THIS IS A GENERATED FILE -- DO NOT EDIT */
3 var targ = xdc.module('gnu.targets.arm.A15F');
4 /* configuro was told the platform explicitly */
5 var platform = 'ti.platforms.evmAM571X';
7 /* decide whether to make an assembly or an executable */
8 var makeAssembly = false;
11 var Executable = xdc.module('xdc.bld.Executable');
13 var exeOpts = new Executable.Attrs({
14         cfgScript: 'C:/Users/a0133185/Desktop/TechSupport/Industrial/Acontis_EC_master/EC_Master_SysBios_Am572x_20170202/Workspace/SYSBIOS_AM57xx/EcMasterDemo/EcMaster.cfg',
15         profile: 'release',
16         cfgHome: 'configPkg',
17 });
19 exeOpts.cfgArgs = 'null';
20 exeOpts.cfgArgsEncoded = true;
22 var exe = Pkg[makeAssembly ? 'addAssembly': 'addExecutable'](
23     'EcMaster',
24     targ,
25     platform,
26     exeOpts
27 );
29 /*
30  * Generate the compiler.opt file
31  * Do this here instead of during the initial creation of the configuro
32  * package, because the contents of any config.bld script are unknown
33  * at that time. Config.bld can't be executed until the XDC build phase.
34  */
35 if (makeAssembly) {
36     var suffix = targ.dllExt || '.p' + targ.suffix;
37 }
38 else {
39     var suffix = '.p' + targ.suffix;
40 }
42 var thisObj = {
43     cfg:        '../EcMaster.cfg',
44     outputPath: 'C:/Users/a0133185/Desktop/TechSupport/Industrial/Acontis_EC_master/EC_Master_SysBios_Am572x_20170202/Workspace/SYSBIOS_AM57xx/EcMasterDemo/Release/configPkg',
45     exeName:    'EcMaster' + suffix,
46     exeIntName: 'EcMaster' + suffix.replace('.', '_'),
47     targ:       targ,
48     linkerCommandFile: 'linker.cmd',
49     compilerOptFile: 'compiler.opt',
50     compilerDefsFile: 'compiler.opt' + ".defs",
51     makeAssembly: makeAssembly
52 };
53 var tmpl = xdc.loadTemplate('xdc/tools/configuro/template/compiler.opt.xdt');
54 tmpl.genFile('compiler.opt', thisObj, [], false);
56 /*
57  * Generate the custom makefile.
58  */
59 var tmpl = xdc.loadTemplate('xdc/tools/configuro/template/' + 
60     (makeAssembly? 'custom.mak.asm.xdt' : 'custom.mak.exe.xdt'));
61 tmpl.genFile('custom.mak', thisObj, [], false);
62 Pkg.makeEpilogue = "include custom.mak";
64 /*
65  * Generate the package script.
66  */
67 var tmpl = xdc.loadTemplate('xdc/tools/configuro/template/package.xs.xdt');
68 tmpl.genFile('package.xs', thisObj, [], false);
70 if (makeAssembly) {
71 /*
72  * Generate the linker options into a staging file, so that the presence or
73  * age of the advertised linker command file can be the makefile trigger to
74  * rebuild the package from the user's config script.
75  */
76     var tmpl = xdc.loadTemplate('xdc/tools/configuro/template/linker.cmd.asm.xdt');
77     tmpl.genFile('linker.cmd.cp', thisObj, [], false);
78 }