annotate kernel/make.py @ 306:b145f8e6050b

Start on c3 rewrite
author Windel Bouwman
date Mon, 09 Dec 2013 19:00:21 +0100
parents 0615b5308710
children ff665880a6b0
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
306
b145f8e6050b Start on c3 rewrite
Windel Bouwman
parents: 305
diff changeset
8 def make():
b145f8e6050b Start on c3 rewrite
Windel Bouwman
parents: 305
diff changeset
9 arglist = ['memory.c3', 'kernel.c3', 'syscall.c3', 'process.c3']
b145f8e6050b Start on c3 rewrite
Windel Bouwman
parents: 305
diff changeset
10 arglist += ['schedule.c3', 'arch_arm.c3']
b145f8e6050b Start on c3 rewrite
Windel Bouwman
parents: 305
diff changeset
11 arglist += ['--target', 'arm']
b145f8e6050b Start on c3 rewrite
Windel Bouwman
parents: 305
diff changeset
12 arglist += ['--dumpasm', '--dumpir']
b145f8e6050b Start on c3 rewrite
Windel Bouwman
parents: 305
diff changeset
13 arglist += ['--log', 'debug']
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
14
306
b145f8e6050b Start on c3 rewrite
Windel Bouwman
parents: 305
diff changeset
15 args = zcc.parser.parse_args(arglist)
b145f8e6050b Start on c3 rewrite
Windel Bouwman
parents: 305
diff changeset
16 zcc.main(args)
b145f8e6050b Start on c3 rewrite
Windel Bouwman
parents: 305
diff changeset
17
b145f8e6050b Start on c3 rewrite
Windel Bouwman
parents: 305
diff changeset
18 if __name__ == '__main__':
b145f8e6050b Start on c3 rewrite
Windel Bouwman
parents: 305
diff changeset
19 make()