targets/LPC/__init__.py
author edouard
Wed, 02 Jun 2010 10:08:58 +0200
changeset 538 ad05f27222cd
parent 508 73ecb803d8af
child 540 bacc1314fee6
permissions -rwxr-xr-x
Moved LPC specific code from toolchain_makefile into LPC target, added FROM_BEREMIZ variable to tell LPC's makefile it is invoked from here.
from .. import toolchain_makefile

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