Changeset 3a71759 in rtems-docs for rtemsconfig


Ignore:
Timestamp:
01/18/16 05:05:50 (7 years ago)
Author:
Amar Takhar <amar@…>
Branches:
4.11, 5, am, master
Children:
11e1a6f
Parents:
46498bd
git-author:
Amar Takhar <amar@…> (01/18/16 05:05:50)
git-committer:
Amar Takhar <verm@…> (05/03/16 00:51:24)
Message:

Rework how conf.py is handled.

Needed to switch due to increasing complexity.

Location:
rtemsconfig
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsconfig/wscript

    r46498bd r3a71759  
    33path.append(abspath('../common/'))
    44
     5from waf import cmd_options_path, cmd_configure_path, cmd_build_path
    56
    6 from waf import cmd_configure, cmd_build
    77
    88def options(ctx):
    9             ctx.add_option('--rtems-path-py', type='string', help="Path to py/ in RTEMS.")
     9                cmd_options_path(ctx)
    1010
    1111def 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 
     12        cmd_configure_path(ctx)
    2113
    2214def build(ctx):
    23 #       path.append(ctx.env.RTEMS_PATH)
     15        cmd_build_path(ctx)
    2416
    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 TracChangeset for help on using the changeset viewer.