summaryrefslogtreecommitdiffstats
path: root/rtemsconfig
diff options
context:
space:
mode:
authorAmar Takhar <amar@rtems.org>2016-01-18 00:05:50 -0500
committerAmar Takhar <verm@darkbeer.org>2016-05-02 20:51:24 -0400
commit3a717592a9d13f7668c7fd3f9638adcc197d873d (patch)
tree6501d65ad6faba8e19be7f3c8d34f66536a70ec6 /rtemsconfig
parent46498bd4e36b9f6d6873de3de5acea11d3f546b4 (diff)
downloadrtems-docs-3a717592a9d13f7668c7fd3f9638adcc197d873d.tar.bz2
Rework how conf.py is handled.
Needed to switch due to increasing complexity.
Diffstat (limited to 'rtemsconfig')
-rw-r--r--rtemsconfig/conf.py8
-rw-r--r--rtemsconfig/wscript25
2 files changed, 12 insertions, 21 deletions
diff --git a/rtemsconfig/conf.py b/rtemsconfig/conf.py
new file mode 100644
index 0000000..5e042a7
--- /dev/null
+++ b/rtemsconfig/conf.py
@@ -0,0 +1,8 @@
+import sys, os
+sys.path.append(os.path.abspath('../common/'))
+
+from conf import *
+
+version = '1.0'
+release = '5.0'
+
diff --git a/rtemsconfig/wscript b/rtemsconfig/wscript
index a681104..7d9e282 100644
--- a/rtemsconfig/wscript
+++ b/rtemsconfig/wscript
@@ -2,32 +2,15 @@ from sys import path
from os.path import abspath
path.append(abspath('../common/'))
+from waf import cmd_options_path, cmd_configure_path, cmd_build_path
-from waf import cmd_configure, cmd_build
def options(ctx):
- ctx.add_option('--rtems-path-py', type='string', help="Path to py/ in RTEMS.")
+ cmd_options_path(ctx)
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)
-
-
+ cmd_configure_path(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_path(ctx)
- cmd_build(ctx, sub)