# HG changeset patch # User Edouard Tisserant # Date 1303828074 -7200 # Node ID 310455d73131bf0efc65599e978cb5dcad428f33 # Parent c7be4d09c5f490c4a29ec3af9195343ea58ebaef Print binary size only in LPCBeremiz diff -r c7be4d09c5f4 -r 310455d73131 connectors/LPC/LPCBootProto.py --- a/connectors/LPC/LPCBootProto.py Thu Apr 21 12:35:27 2011 +0200 +++ b/connectors/LPC/LPCBootProto.py Tue Apr 26 16:27:54 2011 +0200 @@ -47,7 +47,7 @@ data = self.OptData loptdata = len(self.OptData) count=0 - self.PLCprint("%dkB:" % (loptdata/1024)) + #self.PLCprint("%dkB:" % (loptdata/1024)) while len(data)>0: res = self.pseudofile.write(data[:loptdata/100]) data = data[res:] diff -r c7be4d09c5f4 -r 310455d73131 targets/LPC/__init__.py --- a/targets/LPC/__init__.py Thu Apr 21 12:35:27 2011 +0200 +++ b/targets/LPC/__init__.py Tue Apr 26 16:27:54 2011 +0200 @@ -36,7 +36,7 @@ return self.binmd5key else: try: - return open(self._GetMD5FileName(), "r").read() + return open(self._GetBinMD5FileName(), "r").read() except IOError, e: return None @@ -52,5 +52,12 @@ f = open(self._GetBinMD5FileName(), "w") f.write(self.binmd5key) f.close() + try: + self.PluginsRootInstance.logger.write( + _("Binary is %s bytes long\n")% + str(os.path.getsize( + os.path.join(self.buildpath, "ArmPLC_rom.bin")))) + except Exception, e: + pass return res