1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- var armOpts = " -ms ";
- var gnuOpts = " -D_POSIX_SOURCE ";
- var iarOpts = " --diag_suppress=Pa134 ";
- var ndkDir = "";
- var ccOpts = {
- "ti.targets.arm.elf.M4" : armOpts,
- "ti.targets.arm.elf.M4F" : armOpts,
- "gnu.targets.arm.M4" : gnuOpts,
- "gnu.targets.arm.M4F" : gnuOpts,
- "iar.targets.arm.M4" : iarOpts,
- "iar.targets.arm.M4F" : iarOpts,
- };
- for (arg = 0; arg < arguments.length; arg++) {
-
- var targetName = arguments[arg].split("=")[0];
- var rootDir = arguments[arg].split("=")[1];
-
- if (rootDir == "" || rootDir == undefined) {
- continue;
- }
- if (targetName.match(/^NDK/) ) {
- ndkDir = rootDir;
- continue;
- }
- var target = xdc.useModule(targetName);
- target.rootDir = rootDir;
- target.ccOpts.suffix += ccOpts[targetName];
- Build.targets.$add(target);
- }
- var wolfsslPathInclude = " -I" + ndkDir + "/packages/ti/ndk/inc/bsd "
- + "-DWOLFSSL_TIRTOS ";
- var Pkg = xdc.useModule('xdc.bld.PackageContents');
- Pkg.generatedFiles.$add("lib/");
|