equal
deleted
inserted
replaced
4 import hashlib |
4 import hashlib |
5 |
5 |
6 class LPC_target(toolchain_makefile): |
6 class LPC_target(toolchain_makefile): |
7 #extension = ".ld" |
7 #extension = ".ld" |
8 #DebugEnabled = False |
8 #DebugEnabled = False |
9 def __init__(self, PluginsRootInstance): |
9 def __init__(self, ConfigTreeRootInstance): |
10 self.binmd5key = None |
10 self.binmd5key = None |
11 toolchain_makefile.__init__(self, PluginsRootInstance) |
11 toolchain_makefile.__init__(self, ConfigTreeRootInstance) |
12 |
12 |
13 def _GetBinMD5FileName(self): |
13 def _GetBinMD5FileName(self): |
14 return os.path.join(self.buildpath, "lastbuildPLCbin.md5") |
14 return os.path.join(self.buildpath, "lastbuildPLCbin.md5") |
15 |
15 |
16 def _get_md5_header(self): |
16 def _get_md5_header(self): |
62 self.binmd5key = self._get_md5_header() |
62 self.binmd5key = self._get_md5_header() |
63 f = open(self._GetBinMD5FileName(), "w") |
63 f = open(self._GetBinMD5FileName(), "w") |
64 f.write(self.binmd5key) |
64 f.write(self.binmd5key) |
65 f.close() |
65 f.close() |
66 try: |
66 try: |
67 self.PluginsRootInstance.logger.write( |
67 self.ConfigTreeRootInstance.logger.write( |
68 _("Binary is %s bytes long\n")% |
68 _("Binary is %s bytes long\n")% |
69 str(os.path.getsize( |
69 str(os.path.getsize( |
70 os.path.join(self.buildpath, "ArmPLC_rom.bin")))) |
70 os.path.join(self.buildpath, "ArmPLC_rom.bin")))) |
71 except Exception, e: |
71 except Exception, e: |
72 pass |
72 pass |