blob: c3a058be90fe86bc31b9b62dd810b27645e88fb7 [file] [log] [blame]
/* --COPYRIGHT--,EPL
* Copyright (c) 2008 Texas Instruments and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Texas Instruments - initial implementation
*
* --/COPYRIGHT--*/
var debug;
if (debug == null) {
debug = function (msg) {};
}
var ITarget = xdc.loadCapsule("ITarget.xs");
/*
* ======== init ========
* Initialize this package.
*
* This is called after all modules in this package are defined and
* initialized.
*/
function init()
{
ITarget._init(this);
debug(this.$name + ".init() ...");
/* initialize module configuration params that are computed */
var ma = this.$modules;
for (var i = 0; i < ma.length; i++) {
if (ma[i] instanceof this.ITarget.Module) {
var targ = this.ITarget.Module(ma[i]);
var ext = ".s" + targ.suffix;
targ.extensions[ext] = new xdc.om['xdc.bld.ITarget'].Extension({
suf: ext, typ: "asm"
});
}
}
}
/*
* ======== Package.getLibs ========
* This package's implementation of xdc.IPackage.getLibs.
*/
function getLibs()
{
return (null); /* no library required for this package */
}