-
Notifications
You must be signed in to change notification settings - Fork 1
/
wscript
58 lines (43 loc) · 1.12 KB
/
wscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python
# encoding: utf-8
bld_isixlibs = [
'libisix',
'libfoundation',
'libperiph',
]
bld_isixlibs_nos = [
'libfoundation',
]
def options(opt):
opt.load( 'isix_toolchain')
opt.load( 'isix_jtagprg' )
opt.recurse( bld_isixlibs )
def configure(conf):
conf.load('isix_toolchain')
conf.load( 'isix_jtagprg' )
if conf.options.disable_isix:
conf.recurse( bld_isixlibs_nos )
else:
conf.recurse( bld_isixlibs )
def build(bld):
bld.set_build_summary()
_inc = 'config/include'
bld( includes = _inc, export_includes=_inc, name='common_conf' )
if bld.is_defined('CONFIG_ISIX_WITHOUT_KERNEL'):
bld.recurse(bld_isixlibs_nos)
else:
bld.recurse(bld_isixlibs)
#Special target program waflib
def program(ctx):
ctx.load( 'isix_jtagprg' )
#Special rule for debugging
def ocddebug(ctx):
ctx.load( 'isix_jtagprg' )
from waflib.Build import BuildContext
class jtgprog( BuildContext ):
cmd = 'program'
fun = 'program'
from waflib.Build import BuildContext
class jtgdebug( BuildContext ):
cmd = 'ocddebug'
fun = 'ocddebug'