Changeset 46498bd in rtems-docs for rtemsconfig/wscript


Ignore:
Timestamp:
Jan 18, 2016, 3:28:28 AM (4 years ago)
Author:
Amar Takhar <amar@…>
Branches:
4.11, 5, master
Children:
3a71759
Parents:
6c6246c
git-author:
Amar Takhar <amar@…> (01/18/16 03:28:28)
git-committer:
Amar Takhar <verm@…> (05/03/16 00:51:24)
Message:

Fix rtemsconfig building.

I'll probably move to a more pythonic way of doing conf.py since this is getting
too complicated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsconfig/wscript

    r6c6246c r46498bd  
    33path.append(abspath('../common/'))
    44
     5
    56from waf import cmd_configure, cmd_build
    67
     8def options(ctx):
     9            ctx.add_option('--rtems-path-py', type='string', help="Path to py/ in RTEMS.")
     10
    711def 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
    818        cmd_configure(ctx)
    919
     20
     21
    1022def build(ctx):
     23#       path.append(ctx.env.RTEMS_PATH)
    1124
    1225        sub = {
     
    1528                "DOC":                                  "RTEMS Config",
    1629                "FILE_DOC":                             "rtemsconfig",
     30                "CONF_EXTRA":                   "sys.path.append('%s')" % ctx.env.RTEMS_PATH
    1731        }
    1832
Note: See TracChangeset for help on using the changeset viewer.