Mercurial > lcfOS
view kernel/make.py @ 318:e84047f29c78
Add burg and yacc initial attempts
author | Windel Bouwman |
---|---|
date | Tue, 31 Dec 2013 12:38:15 +0100 |
parents | 084cccaa5deb |
children |
line wrap: on
line source
#!/usr/bin/env python import sys import os def make_kernel(args=[]): import zcc arglist = ['memory.c3', 'kernel.c3', 'syscall.c3', 'process.c3'] arglist += ['schedule.c3', 'arch_arm.c3'] arglist += ['--target', 'arm'] arglist += args args = zcc.parser.parse_args(arglist) zcc.main(args) if __name__ == '__main__': sys.path.insert(0, os.path.join('..', 'python')) make_kernel(sys.argv[1:])