Mercurial > lcfOS
annotate kernel/make.py @ 326:2fa27c44e3c9
Changed hasbang
author | Windel Bouwman |
---|---|
date | Sat, 01 Feb 2014 16:54:33 +0100 |
parents | 084cccaa5deb |
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:]) |