summaryrefslogtreecommitdiffstats
path: root/rtemsconfig
diff options
context:
space:
mode:
authorAmar Takhar <amar@rtems.org>2016-01-17 22:28:28 -0500
committerAmar Takhar <verm@darkbeer.org>2016-05-02 20:51:24 -0400
commit46498bd4e36b9f6d6873de3de5acea11d3f546b4 (patch)
treecfad116c91da7445816ee42b166bc6f37e72568b /rtemsconfig
parent6c6246cacec9890f8df237565d3a72d85c8313b3 (diff)
downloadrtems-docs-46498bd4e36b9f6d6873de3de5acea11d3f546b4.tar.bz2
Fix rtemsconfig building.
I'll probably move to a more pythonic way of doing conf.py since this is getting too complicated.
Diffstat (limited to 'rtemsconfig')
-rw-r--r--rtemsconfig/wscript14
1 files changed, 14 insertions, 0 deletions
diff --git a/rtemsconfig/wscript b/rtemsconfig/wscript
index 53eb848..a681104 100644
--- a/rtemsconfig/wscript
+++ b/rtemsconfig/wscript
@@ -2,18 +2,32 @@ from sys import path
from os.path import abspath
path.append(abspath('../common/'))
+
from waf import cmd_configure, cmd_build
+def options(ctx):
+ ctx.add_option('--rtems-path-py', type='string', help="Path to py/ in RTEMS.")
+
def configure(ctx):
+
+ if not ctx.options.rtems_path_py:
+ ctx.fatal("--rtems-path-py is required")
+
+ ctx.env.RTEMS_PATH = ctx.options.rtems_path_py
+
cmd_configure(ctx)
+
+
def build(ctx):
+# path.append(ctx.env.RTEMS_PATH)
sub = {
"VERSION": "1.0",
"RELEASE": "5.0.0",
"DOC": "RTEMS Config",
"FILE_DOC": "rtemsconfig",
+ "CONF_EXTRA": "sys.path.append('%s')" % ctx.env.RTEMS_PATH
}
cmd_build(ctx, sub)