diff options
author | Amar Takhar <amar@rtems.org> | 2015-03-03 09:24:06 -0500 |
---|---|---|
committer | Amar Takhar <amar@rtems.org> | 2015-03-03 09:24:06 -0500 |
commit | 37d4afabee7dacc82fb378c19e4c9fa53ab65098 (patch) | |
tree | 319176fd7385c6503a9e1e0e0e2760ac8c19f712 | |
parent | 4650a795fa32b9a74e4f1d4b8bfe60b15e04fe5e (diff) |
Add VERSION and APPNAME so 'waf dist' works correctly.
-rw-r--r-- | wscript | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |