annotate kernel/make.py @ 293:6aa721e7b10b

Try to improve build sequence
author Windel Bouwman
date Thu, 28 Nov 2013 20:39:37 +0100
parents kernel/make.sh@534b94b40aa8
children 9417caea2eb3
rev   line source
293
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
1 #!/usr/bin/env python
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
2
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
3 import sys
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
4 import os
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
5 sys.path.insert(0, os.path.join('..', 'python'))
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
6 import zcc
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
7
293
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
8 arglist = ['memory.c3', 'kernel.c3', 'syscall.c3']
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
9 arglist += ['--target', 'arm']
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
10 arglist += ['--dumpasm']
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
11 arglist += ['--log', 'debug']
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
12
293
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
13 args = zcc.parser.parse_args(arglist)
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
14 zcc.main(args)