source: rtems-docs/rtemsconfig/wscript @ 46498bd

4.115
Last change on this file since 46498bd was 46498bd, checked in by Amar Takhar <amar@…>, on Jan 18, 2016 at 3:28:28 AM

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 
1from sys import path
2from os.path import abspath
3path.append(abspath('../common/'))
4
5
6from waf import cmd_configure, cmd_build
7
8def options(ctx):
9            ctx.add_option('--rtems-path-py', type='string', help="Path to py/ in RTEMS.")
10
11def 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
22def 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.