view user/makeuser.py @ 330:a79ac866732f

Added kernel recipe
author Windel Bouwman
date Fri, 07 Feb 2014 12:08:40 +0100
parents 084cccaa5deb
children
line wrap: on
line source

#!/usr/bin/env python

import sys
import os

def fix(srcs, extra_args):
    import zcc
    arglist = srcs
    arglist += ['--target', 'arm']
    arglist += extra_args
    args = zcc.parser.parse_args(arglist)
    zcc.main(args)

def make_user(extra_args=[]):
    fix(['lib.c3', 'ipc.c3', 'hello.c3'], extra_args)
    fix(['lib.c3', 'ipc.c3', 'screen.c3'], extra_args)
    fix(['lib.c3', 'ipc.c3', 'console.c3'], extra_args)

if __name__ == '__main__':
    sys.path.insert(0, os.path.join('..', 'python'))
    make_user(sys.argv[1:])