Fix "binary" function parameters

pull/160/head
Emilio Monti 2014-02-07 12:10:39 +00:00
parent acdd9db330
commit 90d56a0234
3 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ class ARM(mbedToolchain):
@hook_tool
def binary(self, elf, bin):
def binary(self, resources, elf, bin):
args = [self.elf2bin, '--bin', '-o', bin, elf]
if hasattr(self.target, "binary_cmdline_hook"):

View File

@ -158,7 +158,7 @@ class GCC(mbedToolchain):
self.default_cmd(self.hook.get_cmdline_linker(self.ld + ["-T%s" % mem_map, "-o", output] +
objects + ["-L%s" % L for L in lib_dirs] + libs))
def binary(self, elf, bin):
def binary(self, resources, elf, bin):
self.default_cmd(self.hook.get_cmdline_binary([self.elf2bin, "-O", "binary", elf, bin]))

View File

@ -102,5 +102,5 @@ class IAR(mbedToolchain):
args = [self.ld, "-o", output, "--config", mem_map]
self.default_cmd(self.hook.get_cmdline_linker(args + objects + libraries))
def binary(self, elf, bin):
def binary(self, resources, elf, bin):
self.default_cmd(self.hook.get_cmdline_binary([self.elf2bin, '--bin', elf, bin]))