annotate user/makeuser.py @ 327:61c9df5bffce

Changed emulated board to cortex a8 board
author Windel Bouwman
date Sat, 01 Feb 2014 17:21:21 +0100
parents 084cccaa5deb
children
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
315
084cccaa5deb Added console and screen
Windel Bouwman
parents: 313
diff changeset
6 def fix(srcs, extra_args):
084cccaa5deb Added console and screen
Windel Bouwman
parents: 313
diff changeset
7 import zcc
084cccaa5deb Added console and screen
Windel Bouwman
parents: 313
diff changeset
8 arglist = srcs
311
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
9 arglist += ['--target', 'arm']
315
084cccaa5deb Added console and screen
Windel Bouwman
parents: 313
diff changeset
10 arglist += extra_args
311
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
11 args = zcc.parser.parse_args(arglist)
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
12 zcc.main(args)
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
13
315
084cccaa5deb Added console and screen
Windel Bouwman
parents: 313
diff changeset
14 def make_user(extra_args=[]):
084cccaa5deb Added console and screen
Windel Bouwman
parents: 313
diff changeset
15 fix(['lib.c3', 'ipc.c3', 'hello.c3'], extra_args)
084cccaa5deb Added console and screen
Windel Bouwman
parents: 313
diff changeset
16 fix(['lib.c3', 'ipc.c3', 'screen.c3'], extra_args)
084cccaa5deb Added console and screen
Windel Bouwman
parents: 313
diff changeset
17 fix(['lib.c3', 'ipc.c3', 'console.c3'], extra_args)
084cccaa5deb Added console and screen
Windel Bouwman
parents: 313
diff changeset
18
311
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
19 if __name__ == '__main__':
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents:
diff changeset
20 sys.path.insert(0, os.path.join('..', 'python'))
315
084cccaa5deb Added console and screen
Windel Bouwman
parents: 313
diff changeset
21 make_user(sys.argv[1:])