comparison kernel/make.py @ 311:ff665880a6b0

Added testcase for kernel and userspace
author Windel Bouwman
date Mon, 16 Dec 2013 12:49:24 +0100
parents b145f8e6050b
children 2c9768114877
comparison
equal deleted inserted replaced
310:e95e5572cd6d 311:ff665880a6b0
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 sys.path.insert(0, os.path.join('..', 'python'))
6 import zcc 5 import zcc
7 6
8 def make(): 7 def make_kernel():
9 arglist = ['memory.c3', 'kernel.c3', 'syscall.c3', 'process.c3'] 8 arglist = ['memory.c3', 'kernel.c3', 'syscall.c3', 'process.c3']
10 arglist += ['schedule.c3', 'arch_arm.c3'] 9 arglist += ['schedule.c3', 'arch_arm.c3']
11 arglist += ['--target', 'arm'] 10 arglist += ['--target', 'arm']
12 arglist += ['--dumpasm', '--dumpir'] 11 arglist += ['--dumpasm', '--dumpir']
13 arglist += ['--log', 'debug'] 12 arglist += ['--log', 'debug']
14 13
15 args = zcc.parser.parse_args(arglist) 14 args = zcc.parser.parse_args(arglist)
16 zcc.main(args) 15 zcc.main(args)
17 16
18 if __name__ == '__main__': 17 if __name__ == '__main__':
19 make() 18 sys.path.insert(0, os.path.join('..', 'python'))
19 make_kernel()