Mercurial > lcfOS
comparison kernel/make.py @ 312:2c9768114877
Added cool logging formatter
author | Windel Bouwman |
---|---|
date | Mon, 16 Dec 2013 17:58:15 +0100 |
parents | ff665880a6b0 |
children | 04cf4d26a3bc |
comparison
equal
deleted
inserted
replaced
311:ff665880a6b0 | 312:2c9768114877 |
---|---|
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 import zcc | |
6 | 5 |
7 def make_kernel(): | 6 def make_kernel(): |
8 arglist = ['memory.c3', 'kernel.c3', 'syscall.c3', 'process.c3'] | 7 arglist = ['memory.c3', 'kernel.c3', 'syscall.c3', 'process.c3'] |
9 arglist += ['schedule.c3', 'arch_arm.c3'] | 8 arglist += ['schedule.c3', 'arch_arm.c3'] |
10 arglist += ['--target', 'arm'] | 9 arglist += ['--target', 'arm'] |
14 args = zcc.parser.parse_args(arglist) | 13 args = zcc.parser.parse_args(arglist) |
15 zcc.main(args) | 14 zcc.main(args) |
16 | 15 |
17 if __name__ == '__main__': | 16 if __name__ == '__main__': |
18 sys.path.insert(0, os.path.join('..', 'python')) | 17 sys.path.insert(0, os.path.join('..', 'python')) |
18 import zcc | |
19 make_kernel() | 19 make_kernel() |