summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 29466ad)
raw | patch | inline | side by side (parent: 29466ad)
author | Chris Ring <cring@ti.com> | |
Fri, 25 Oct 2013 00:29:13 +0000 (17:29 -0700) | ||
committer | Chris 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".
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 | patch | blob | history |
index 96f326f2c0be52c60408b1c701bb0c8156204bd7..27f413e786b42b42c961efe5eb21011ef6b98216 100644 (file)
--- a/fc.bld
+++ b/fc.bld
/* 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;