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