Mercurial > lcfOS
comparison python/ppci/buildtasks.py @ 346:3bb7dcfe5529
expanded arm target
author | Windel Bouwman |
---|---|
date | Fri, 07 Mar 2014 17:05:32 +0100 |
parents | 86b02c98a717 |
children | 442fb043d149 |
comparison
equal
deleted
inserted
replaced
345:b4882ff0ed06 | 346:3bb7dcfe5529 |
---|---|
31 def __init__(self, source, target, output_object): | 31 def __init__(self, source, target, output_object): |
32 super().__init__('Assemble') | 32 super().__init__('Assemble') |
33 self.source = source | 33 self.source = source |
34 self.output = output_object | 34 self.output = output_object |
35 self.ostream = BinaryOutputStream(self.output) | 35 self.ostream = BinaryOutputStream(self.output) |
36 self.assembler = Assembler(target, self.ostream) | 36 self.assembler = Assembler(target) |
37 | 37 |
38 def run(self): | 38 def run(self): |
39 self.ostream.selectSection('code') | 39 self.ostream.selectSection('code') |
40 self.assembler.assemble(self.source) | 40 self.assembler.assemble(self.source, self.ostream) |
41 | 41 |
42 | 42 |
43 class Compile(BuildTask): | 43 class Compile(BuildTask): |
44 """ Task that compiles C3 source for some target into an object file """ | 44 """ Task that compiles C3 source for some target into an object file """ |
45 def __init__(self, sources, includes, target, output_object): | 45 def __init__(self, sources, includes, target, output_object): |