]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - mfp/fcdev.git/commitdiff
SDOCM00104721: Allow target config params with '=' 3.30.00.01_eng
authorChris Ring <cring@ti.com>
Fri, 25 Oct 2013 00:29:13 +0000 (17:29 -0700)
committerChris Ring <cring@ti.com>
Fri, 25 Oct 2013 00:29:13 +0000 (17:29 -0700)
Enable users to assign a target config param who's value
contains a '=' char (e.g. ccOpts.suffix=-pds=880).

Previously everything after the 2nd '=' char was discarded.
For example, in products.mak, the following assignment, which
includes an override of the ccOpts.suffix, will not work as
expected:
    ti.targets.elf.C66 = /opt/ti/c6x/7.2.0/Linux;ccOpts.suffix=-pdr -pden -pds=880 -pds=238 -pds452 -pds195 -mi10 -mo -g --visibility=protected

In that example, C66.ccOpts.suffix was [incorrectly] set
to "-pdr -pden -pds".

fc.bld

diff --git a/fc.bld b/fc.bld
index 96f326f2c0be52c60408b1c701bb0c8156204bd7..27f413e786b42b42c961efe5eb21011ef6b98216 100644 (file)
--- a/fc.bld
+++ b/fc.bld
@@ -140,7 +140,7 @@ for (arg = 0; arg < arguments.length; arg++) {
     /* for all the other parts, assign target.<left> = <right> */
     for (var i = 1; i < configParts.length; i++) {
         var modCfgParam = configParts[i].split("=")[0];
-        var modCfgValue = configParts[i].split("=")[1];
+        var modCfgValue = configParts[i].substring(configParts[i].indexOf("=") + 1);
         var modCfgIndex = modCfgParam.split(".");
         var element = target;