summaryrefslogtreecommitdiffstats
path: root/common/waf.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2020-03-12 16:34:16 +1100
committerChris Johns <chrisj@rtems.org>2020-03-13 08:18:36 +1100
commit19af6b47d54b802da6a144dbf4008c75cd2fa073 (patch)
tree0ad3c8667924b29e9b48d8f6c418429bc74b7531 /common/waf.py
parentuser: Add anchors to some BSPs. (diff)
downloadrtems-docs-19af6b47d54b802da6a144dbf4008c75cd2fa073.tar.bz2
waf: Get the version numbers from the version file.
Diffstat (limited to 'common/waf.py')
-rw-r--r--common/waf.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/waf.py b/common/waf.py
index 066048d..36feef5 100644
--- a/common/waf.py
+++ b/common/waf.py
@@ -19,7 +19,10 @@ import conf
sphinx_min_version = (1, 3)
def version_cmdline(ctx):
- return '-Drelease="%s" -Dversion="%s"' % (ctx.env.RELEASE, ctx.env.VERSION)
+ return '-Drelease="%s" -Dversion="%s" -Drtems_major="%s" ' \
+ '-Drtems_minor="%s" -D rtems_revision="%s"' \
+ % (ctx.env.RELEASE, ctx.env.VERSION, ctx.env.RTEMS_MAJOR,
+ ctx.env.RTEMS_MINOR, ctx.env.RTEMS_REVISION)
def sphinx_cmdline(ctx, build_type, conf_dir, doctrees,
source_dir, output_dir, configs = []):