comparison python/ppci/recipe.py @ 367:577ed7fb3fe4

Try to make thumb work again
author Windel Bouwman
date Fri, 21 Mar 2014 10:27:57 +0100
parents 39bf68bf1891
children 9667d78ba79e
comparison
equal deleted inserted replaced
366:39bf68bf1891 367:577ed7fb3fe4
29 def openfile(self, filename): 29 def openfile(self, filename):
30 return open(self.relpath(filename), 'r') 30 return open(self.relpath(filename), 'r')
31 31
32 def handle_compile(self, value): 32 def handle_compile(self, value):
33 sources = [self.openfile(s) for s in value['sources']] 33 sources = [self.openfile(s) for s in value['sources']]
34 includes = [self.openfile(i) for i in value['includes']] 34 if 'includes' in value:
35 includes = [self.openfile(i) for i in value['includes']]
36 else:
37 includes = []
35 target = targets[value['machine']] 38 target = targets[value['machine']]
36 output = ObjectFile() 39 output = ObjectFile()
37 task = Compile(sources, includes, target, output) 40 task = Compile(sources, includes, target, output)
38 self.runner.add_task(task) 41 self.runner.add_task(task)
39 return task 42 return task