293
|
1 #!/usr/bin/env python
|
|
2
|
|
3 import sys
|
|
4 import os
|
283
|
5
|
311
|
6 def make_kernel():
|
306
|
7 arglist = ['memory.c3', 'kernel.c3', 'syscall.c3', 'process.c3']
|
|
8 arglist += ['schedule.c3', 'arch_arm.c3']
|
|
9 arglist += ['--target', 'arm']
|
|
10 arglist += ['--dumpasm', '--dumpir']
|
|
11 arglist += ['--log', 'debug']
|
283
|
12
|
306
|
13 args = zcc.parser.parse_args(arglist)
|
|
14 zcc.main(args)
|
|
15
|
|
16 if __name__ == '__main__':
|
311
|
17 sys.path.insert(0, os.path.join('..', 'python'))
|
312
|
18 import zcc
|
311
|
19 make_kernel()
|