# HG changeset patch # User edouard # Date 1275466138 -7200 # Node ID ad05f27222cdcb7b8e06fd9785874089ace5e9ca # Parent 881c0b3f020425d5264c2ad66515f43b3c188be5 Moved LPC specific code from toolchain_makefile into LPC target, added FROM_BEREMIZ variable to tell LPC's makefile it is invoked from here. diff -r 881c0b3f0204 -r ad05f27222cd targets/LPC/__init__.py --- a/targets/LPC/__init__.py Tue Jun 01 13:08:13 2010 +0200 +++ b/targets/LPC/__init__.py Wed Jun 02 10:08:58 2010 +0200 @@ -3,3 +3,9 @@ class LPC_target(toolchain_makefile): extension = ".ld" DebugEnabled = False + + def GetBinaryCode(self): + try: + return open(os.path.join(self.buildpath, "ArmPLC_rom.bin"), "rb").read() + except Exception, e: + return None diff -r 881c0b3f0204 -r ad05f27222cd targets/XSD_toolchain_makefile --- a/targets/XSD_toolchain_makefile Tue Jun 01 13:08:13 2010 +0200 +++ b/targets/XSD_toolchain_makefile Wed Jun 02 10:08:58 2010 +0200 @@ -1,6 +1,6 @@ - + diff -r 881c0b3f0204 -r ad05f27222cd targets/toolchain_makefile.py --- a/targets/toolchain_makefile.py Tue Jun 01 13:08:13 2010 +0200 +++ b/targets/toolchain_makefile.py Wed Jun 02 10:08:58 2010 +0200 @@ -15,14 +15,9 @@ def SetBuildPath(self, buildpath): self.buildpath = buildpath - self.exe_path = os.path.join(self.buildpath, "ArmPLC_rom.bin") - self.md5_path = os.path.join(self.buildpath, "ArmPLC.md5") def GetBinaryCode(self): - try: - return open(self.exe_path, "rb").read() - except Exception, e: - return None + return None def _GetMD5FileName(self): return os.path.join(self.buildpath, "lastbuildPLC.md5")