This repository has been archived by the owner. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wscript
48 lines (41 loc) · 1.31 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
#
# Waf script
#
from __future__ import print_function
rtems_version = "5"
try:
import rtems_waf.rtems as rtems
except:
print('error: no rtems_waf git submodule')
import sys
sys.exit(1)
def init(ctx):
rtems.init(ctx, version = rtems_version, long_commands = True)
def bsp_configure(conf, arch_bsp):
# Add BSP specific configuration checks
pass
def options(opt):
rtems.options(opt)
opt.add_option('--project-version',
action='store',
default = 'unknown',
dest = 'proj_version',
help = 'Add a version label for this project')
def configure(conf):
conf.env.PROJ_VERSION = conf.options.proj_version
rtems.configure(conf, bsp_configure = bsp_configure)
def build(bld):
rtems.build(bld)
bld.env.CFLAGS += ['-g', '-O2']
bld.env.CFLAGS += ['-DVERSION_LABLE="%s"' % bld.env.PROJ_VERSION]
bld(features = 'c cprogram',
target = 'rtems-ec-cli.exe',
includes = 'ile-cli/includes .',
source = ['main.c',
'init.c',
'ile-cli/src/ile-cli-cmd-tree.c',
'ile-cli/src/ile-cli-core.c',
'ile-cli/src/ile-debug.c',
'ile-cli/src/ile-history.c',
'ile-cli/src/ile-vterm.c'
])