diff options
author | Sam Nelson <sam.nelson@ti.com> | 2015-09-16 13:29:03 -0400 |
---|---|---|
committer | Angela Stegmaier <angelabaker@ti.com> | 2015-10-06 14:14:30 -0500 |
commit | 0c7fcaa04280946a573318da3242a79b45ff8ba3 (patch) | |
tree | 8d00587e9cd8afb194fc6d9b7436e529b0df0674 /packages | |
parent | 7750cc4d04440c9e6dfba363d14b9c80ff484cd2 (diff) | |
download | ipc-0c7fcaa04280946a573318da3242a79b45ff8ba3.tar.gz |
ipc: transport: Add TCI6638 to use _rpmsg2 library3.41.00.01_eng
- RPMSG2 supports RPMSG_NS_2_0 which is default for
remoteproc driver in kernel version 4.1
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/ti/ipc/transports/package.xs | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/packages/ti/ipc/transports/package.xs b/packages/ti/ipc/transports/package.xs index c71b9e2..2d54c7d 100644 --- a/packages/ti/ipc/transports/package.xs +++ b/packages/ti/ipc/transports/package.xs @@ -35,6 +35,17 @@ */ /* + * ======== rpmsg2Device ======== + */ + +var rpmsg2Device = { + 'OMAP4430' : { special: "_rpmsg2" }, + 'OMAP5430' : { special: "_rpmsg2" }, + 'Vayu' : { special: "_rpmsg2" }, + 'TMS320TCI6634' : { special: "_rpmsg2" } +}; + +/* * ======== Package.getLibs ======== * This function is called when a program's configuration files are * being generated and it returns the name of a library appropriate @@ -65,20 +76,16 @@ function getLibs(prog) var device = prog.cpu.deviceName; var special = ""; /* used if there is a 'special' lib for a platform */ - switch (device) { - case "OMAP4430": - case "OMAP5430": - case "Vayu": - case "DRA7XX": - special = "_rpmsg2"; - break; + var Settings = xdc.loadCapsule('ti/sdo/ipc/family/Settings.xs'); + Settings.setDeviceAliases(rpmsg2Device, Settings.deviceAliases); + + var rpmsg2 = rpmsg2Device[device]; - default: - special = ""; - break; + if (rpmsg2 != null) { + special = rpmsg2.special; } - /* the location of the libraries are in lib/<profile>/* */ + /* the location of the libraries are in lib/<profile> */ var name = this.$name + special + ".a" + suffix; var lib = "lib/" + this.profile + "/" + name; |