annotate user/makeuser.py @ 312:2c9768114877

Added cool logging formatter
author Windel Bouwman
date Mon, 16 Dec 2013 17:58:15 +0100
parents ff665880a6b0
children 04cf4d26a3bc
rev   line source
311
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
1 #!/usr/bin/env python
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
2
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
3 import sys
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
4 import os
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
5 import zcc
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
6
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
7 def make_user():
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
8 arglist = ['lib.c3', 'ipc.c3', 'hello.c3']
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
9 arglist += ['--target', 'arm']
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
10 arglist += ['--dumpasm', '--dumpir']
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
11 arglist += ['--log', 'debug']
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
12
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
13 args = zcc.parser.parse_args(arglist)
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
14 zcc.main(args)
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
15
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
16 if __name__ == '__main__':
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
17 sys.path.insert(0, os.path.join('..', 'python'))
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
18 make_user()