summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmar Takhar <amar@rtems.org>2015-03-03 09:24:06 -0500
committerAmar Takhar <amar@rtems.org>2015-12-11 15:15:52 -0500
commit85306e7f140ff591c5cad93804ee46d7cb3931cd (patch)
tree14f5fd9cd8bd9913ca86ed3f38fa010fc3e8a9b7
parent207346fd7281733d55d0724fcdd4ce2e6eb8b412 (diff)
Add VERSION and APPNAME so 'waf dist' works correctly.
-rw-r--r--wscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/wscript b/wscript
index 6a5670f88c..1113a7bc90 100644
--- a/wscript
+++ b/wscript
@@ -20,6 +20,15 @@ from rtems_waf.switch import options
from rtems_waf.tools import get_file_mtime
from os.path import exists
+# RTEMS Version for waf
+VERSION='%d.%d' % (config["rtems_version_major"], config["rtems_version_minor"])
+if config["rtems_version_revision"]:
+ VERSION = "%s.%d" % (VERSION, config["rtems_version_revision"])
+ if config["rtems_version_patch"]: # There can't be a patch version without a revision.
+ VERSION = "%s.%d" % (VERSION, config["rtems_version_patch"])
+
+APPNAME='rtems'
+
pprint.__doc__ = None # Make sure waf doesn't see this as a command.
Configure.autoconfig = 'clobber' # Apply the original configure command-line arguments