4.115am
Last change
on this file since 46498bd was
46498bd,
checked in by Amar Takhar <amar@…>, on 01/18/16 at 03:28:28
|
Fix rtemsconfig building.
I'll probably move to a more pythonic way of doing conf.py since this is getting
too complicated.
|
-
Property mode set to
100644
|
File size:
660 bytes
|
Line | |
---|
1 | from sys import path |
---|
2 | from os.path import abspath |
---|
3 | path.append(abspath('../common/')) |
---|
4 | |
---|
5 | |
---|
6 | from waf import cmd_configure, cmd_build |
---|
7 | |
---|
8 | def options(ctx): |
---|
9 | ctx.add_option('--rtems-path-py', type='string', help="Path to py/ in RTEMS.") |
---|
10 | |
---|
11 | def configure(ctx): |
---|
12 | |
---|
13 | if not ctx.options.rtems_path_py: |
---|
14 | ctx.fatal("--rtems-path-py is required") |
---|
15 | |
---|
16 | ctx.env.RTEMS_PATH = ctx.options.rtems_path_py |
---|
17 | |
---|
18 | cmd_configure(ctx) |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | def build(ctx): |
---|
23 | # path.append(ctx.env.RTEMS_PATH) |
---|
24 | |
---|
25 | sub = { |
---|
26 | "VERSION": "1.0", |
---|
27 | "RELEASE": "5.0.0", |
---|
28 | "DOC": "RTEMS Config", |
---|
29 | "FILE_DOC": "rtemsconfig", |
---|
30 | "CONF_EXTRA": "sys.path.append('%s')" % ctx.env.RTEMS_PATH |
---|
31 | } |
---|
32 | |
---|
33 | cmd_build(ctx, sub) |
---|
Note: See
TracBrowser
for help on using the repository browser.