Mercurial > lcfOS
annotate kernel/make.py @ 315:084cccaa5deb
Added console and screen
author | Windel Bouwman |
---|---|
date | Sat, 21 Dec 2013 10:03:01 +0100 |
parents | 04cf4d26a3bc |
children |
rev | line source |
---|---|
293 | 1 #!/usr/bin/env python |
2 | |
3 import sys | |
4 import os | |
283 | 5 |
315 | 6 def make_kernel(args=[]): |
313 | 7 import zcc |
306 | 8 arglist = ['memory.c3', 'kernel.c3', 'syscall.c3', 'process.c3'] |
9 arglist += ['schedule.c3', 'arch_arm.c3'] | |
10 arglist += ['--target', 'arm'] | |
315 | 11 arglist += args |
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')) |
315 | 18 make_kernel(sys.argv[1:]) |