From 19af6b47d54b802da6a144dbf4008c75cd2fa073 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 12 Mar 2020 16:34:16 +1100 Subject: waf: Get the version numbers from the version file. --- common/waf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common/waf.py') 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 = []): -- cgit v1.2.3