comparison kernel/make.py @ 315:084cccaa5deb

Added console and screen
author Windel Bouwman
date Sat, 21 Dec 2013 10:03:01 +0100
parents 04cf4d26a3bc
children
comparison
equal deleted inserted replaced
314:38f5f298ce0e 315:084cccaa5deb
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 import sys 3 import sys
4 import os 4 import os
5 5
6 def make_kernel(): 6 def make_kernel(args=[]):
7 import zcc 7 import zcc
8 arglist = ['memory.c3', 'kernel.c3', 'syscall.c3', 'process.c3'] 8 arglist = ['memory.c3', 'kernel.c3', 'syscall.c3', 'process.c3']
9 arglist += ['schedule.c3', 'arch_arm.c3'] 9 arglist += ['schedule.c3', 'arch_arm.c3']
10 arglist += ['--target', 'arm'] 10 arglist += ['--target', 'arm']
11 arglist += ['--log', 'debug'] 11 arglist += args
12 12
13 args = zcc.parser.parse_args(arglist) 13 args = zcc.parser.parse_args(arglist)
14 zcc.main(args) 14 zcc.main(args)
15 15
16 if __name__ == '__main__': 16 if __name__ == '__main__':
17 sys.path.insert(0, os.path.join('..', 'python')) 17 sys.path.insert(0, os.path.join('..', 'python'))
18 make_kernel() 18 make_kernel(sys.argv[1:])