don't rebuild the makefile based project if only companyName, projectName or productName are changed
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 24 Nov 2016 13:17:06 +0300
changeset 1575 de2da05089ea
parent 1574 ce9c0e68389c
child 1576 6df9937f130b
don't rebuild the makefile based project if only companyName, projectName or productName are changed

And this fix current encoding issues, because all these information fields can
contain non-latin characters.
targets/toolchain_makefile.py
--- a/targets/toolchain_makefile.py	Tue Nov 22 18:42:48 2016 +0300
+++ b/targets/toolchain_makefile.py	Thu Nov 24 13:17:06 2016 +0300
@@ -95,11 +95,7 @@
                         
         oldmd5 = self.md5key
         self.md5key = hashlib.md5(wholesrcdata).hexdigest()
-        props = self.CTRInstance.GetProjectProperties()
-        self.md5key += '#'.join([props[key] for key in ['companyName',
-                                                        'projectName',
-                                                        'productName']])
-        self.md5key += '#' #+','.join(map(str,time.localtime()))
+
         # Store new PLC filename based on md5 key
         f = open(self._GetMD5FileName(), "w")
         f.write(self.md5key)