Changeset 46498bd in rtems-docs


Ignore:
Timestamp:
01/18/16 03:28:28 (8 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.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • book/index_book.rst

    r6c6246c r46498bd  
    2323        filesystem/index.rst
    2424        networking/index.rst
    25         new_chapters/index.rst
    2625        porting/index.rst
    2726        posix1003_1/index.rst
    2827        posix_users/index.rst
    29         relnotes/index.rst
  • book/wscript

    r6c6246c r46498bd  
    55from waf import cmd_configure, cmd_build
    66
     7
     8def options(ctx):
     9        ctx.add_option('--rtems-path-py', type='string', help="Path to py/ in RTEMS.")
     10
    711def configure(ctx):
     12        if not ctx.options.rtems_path_py:
     13                ctx.fatal("--rtems-path-py is required")
     14
     15        ctx.env.RTEMS_PATH = ctx.options.rtems_path_py
    816        cmd_configure(ctx)
    917
     
    2129                "filesystem",
    2230                "networking",
    23                 "new_chapters",
    2431                "porting",
    2532                "posix1003_1",
    2633                "posix_users",
    27                 "relnotes"
    2834        ]
    2935
     
    3541        for dir in dirs:
    3642                files = ctx.path.parent.find_node(dir).ant_glob("**/*.rst")
     43                files += ctx.path.parent.find_node(dir).ant_glob("**/*.jpg")
     44                files += ctx.path.parent.find_node(dir).ant_glob("**/*.png")
    3745                files = [x for x in files if x.name.find("/build/") == -1]
    3846                ctx.path.get_bld().make_node(dir).mkdir() # dirs
     
    5563
    5664        sub = {
    57                 "VERSION":                              "1.0",
    58                 "RELEASE":                              "5.0.0",
    59                 "DOC":                                  "Manual",
    60                 "FILE_DOC":                             "rtemsmanual",
     65                "VERSION":                      "1.0",
     66                "RELEASE":                      "5.0.0",
     67                "DOC":                          "Manual",
     68                "FILE_DOC":                     "rtemsmanual",
     69                "CONF_EXTRA":           "sys.path.append('%s')" % ctx.env.RTEMS_PATH
    6170        }
    6271
  • common/conf.py

    r6c6246c r46498bd  
    22sys.path.append(os.path.abspath('.'))
    33sys.path.append(os.path.abspath('../../common/'))
     4
     5@CONF_EXTRA@
    46
    57extensions = [
  • 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.