From efc4f099b459833cc424f133716824bc0efc060e Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 9 Dec 2015 20:08:19 +1100 Subject: Add release versioning support. Support a top level VERSION file that defines an RTEMS release. Fix the install of the python modules including thertems-test. Update the git python module to the RSB version. Fix the options to not call clean and to call dirty. Update the version python module. Fix the rtld C++ support to the VERSION file and the top level waf script. --- linkers/wscript | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'linkers/wscript') diff --git a/linkers/wscript b/linkers/wscript index c1c4a61..8f56752 100644 --- a/linkers/wscript +++ b/linkers/wscript @@ -33,10 +33,6 @@ # import sys -version_major = 1 -version_minor = 0 -version_revision = 0 - def options(opt): opt.load('compiler_c') opt.load('compiler_cxx') @@ -45,8 +41,6 @@ def configure(conf): conf.load('compiler_c') conf.load('compiler_cxx') - conf.env.C_OPTS = conf.options.c_opts.split(',') - conf.env.RTEMS_VERSION = conf.options.rtems_version conf.write_config_header('config.h') def build(bld): @@ -84,12 +78,19 @@ def build(bld): # modules = ['rld', 'elf', 'iberty'] + # + # The list of defines + # + defines = ['HAVE_CONFIG_H=1', + 'RTEMS_VERSION=\"%s\"' % (bld.env.RTEMS_VERSION), + 'RTEMS_RELEASE=\"%s\"' % (bld.env.RTEMS_RELEASE)] + # # Build the linker. # bld.program(target = 'rtems-ld', source = ['rtems-ld.cpp'], - defines = ['HAVE_CONFIG_H=1', 'RTEMS_VERSION=' + bld.env.RTEMS_VERSION], + defines = defines, includes = ['.'] + conf['includes'], cflags = conf['cflags'] + conf['warningflags'], cxxflags = conf['cxxflags'] + conf['warningflags'], @@ -101,7 +102,7 @@ def build(bld): # bld.program(target = 'rtems-ra', source = ['rtems-ra.cpp'], - defines = ['HAVE_CONFIG_H=1', 'RTEMS_VERSION=' + bld.env.RTEMS_VERSION], + defines = defines, includes = ['.'] + conf['includes'], cflags = conf['cflags'] + conf['warningflags'], cxxflags = conf['cxxflags'] + conf['warningflags'], @@ -113,7 +114,7 @@ def build(bld): # bld.program(target = 'rtems-tld', source = ['rtems-tld.cpp'], - defines = ['HAVE_CONFIG_H=1', 'RTEMS_VERSION=' + bld.env.RTEMS_VERSION], + defines = defines, includes = ['.'] + conf['includes'], cflags = conf['cflags'] + conf['warningflags'], cxxflags = conf['cxxflags'] + conf['warningflags'], @@ -139,7 +140,7 @@ def build(bld): # bld.program(target = 'rtems-syms', source = ['rtems-syms.cpp'], - defines = ['HAVE_CONFIG_H=1', 'RTEMS_VERSION=' + bld.env.RTEMS_VERSION], + defines = defines, includes = ['.'] + conf['includes'], cflags = conf['cflags'] + conf['warningflags'], cxxflags = conf['cxxflags'] + conf['warningflags'], @@ -151,7 +152,7 @@ def build(bld): # bld.program(target = 'rtems-rap', source = ['rtems-rapper.cpp'], - defines = ['HAVE_CONFIG_H=1', 'RTEMS_VERSION=' + bld.env.RTEMS_VERSION], + defines = defines, includes = ['.'] + conf['includes'], cflags = conf['cflags'] + conf['warningflags'], cxxflags = conf['cxxflags'] + conf['warningflags'], -- cgit v1.2.3