diff --git a/rtems/config/rtems-4.11-base.bset b/rtems/config/rtems-4.11-base.bset new file mode 100644 index 0000000..fa3b5b6 --- /dev/null +++ b/rtems/config/rtems-4.11-base.bset @@ -0,0 +1,12 @@ +# +# Base defines for RTEMS 4.11 +# + +%define rtems_version 4.11 + +package: rtems-%{rtems_version}-%{_target}-%{release} + +# +# Project custom message +# +%define gcc_version_message RTEMS %{rtems_version}-%{release},gcc-%{gcc_version}/newlib-%{newlib_version} diff --git a/rtems/config/rtems-arm-4.11.bset b/rtems/config/rtems-arm-4.11.bset new file mode 100644 index 0000000..c08066e --- /dev/null +++ b/rtems/config/rtems-arm-4.11.bset @@ -0,0 +1,19 @@ +# +# Tools Set for RTEMS ARM 4.11 Stable +# + +%define _target arm-rtemseabi4.11 + +%define release 1 + +# +# The RTEMS 4.11 base defines. +# +%include rtems-4.11-base.bset + +# +# Tools configuration. +# +rtems-binutils-2.22-1 +rtems-gcc-4.6.3-newlib-1.20.0-1 +rtems-gdb-7.5-1 diff --git a/rtems/config/rtems-sparc-4.11.bset b/rtems/config/rtems-sparc-4.11.bset new file mode 100644 index 0000000..6c2fb6b --- /dev/null +++ b/rtems/config/rtems-sparc-4.11.bset @@ -0,0 +1,19 @@ +# +# Tools Set for RTEMS SPARC 4.11 Stable +# + +%define _target sparc-rtems4.11 + +%define release 1 + +# +# The RTEMS 4.11 base defines. +# +%include rtems-4.11-base.bset + +# +# Tools configuration. +# +rtems-binutils-2.22-1 +rtems-gcc-4.6.3-newlib-1.20.0-1 +rtems-gdb-7.5-1 diff --git a/source-builder/sb/defaults.py b/source-builder/sb/defaults.py index 802ad21..b5daec9 100644 --- a/source-builder/sb/defaults.py +++ b/source-builder/sb/defaults.py @@ -251,7 +251,7 @@ class command_line: def _help(self): print '%s: [options] [args]' % (self.command_name) - print 'Source Builder, an RTEMS Tools Project (c) 2012 Chris Johns' + print 'Source Builder, an RTEMS Tools Project (c) 2012-2013 Chris Johns' print 'Options and arguments:' print '--force : Create directories that are not present' print '--trace : Trace the execution (not current used)' diff --git a/source-builder/sb/setbuilder.py b/source-builder/sb/setbuilder.py index eca60e4..11325bd 100644 --- a/source-builder/sb/setbuilder.py +++ b/source-builder/sb/setbuilder.py @@ -1,6 +1,6 @@ # # RTEMS Tools Project (http://www.rtems.org/) -# Copyright 2010-2012 Chris Johns (chrisj@rtems.org) +# Copyright 2010-2013 Chris Johns (chrisj@rtems.org) # All rights reserved. # # This file is part of the RTEMS Tools package in 'rtems-tools'. @@ -18,7 +18,7 @@ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # -# This code builds a cross-gcc compiler tool suite given a tool set. A tool +# This code builds a package compiler tool suite given a tool set. A tool # set lists the various tools. These are specific tool configurations. # @@ -110,7 +110,7 @@ class buildset: " && %{__tar} -cf - . | %{__bzip2} > " + tar + "'") _build.run(cmd, shell_opts = '-c', cwd = tmproot) - def load(self): + def parse(self, bset): def _clean(line): line = line[0:-1] @@ -119,17 +119,6 @@ class buildset: line = line[1:b] return line.strip() - exbset = self.opts.expand(self.bset, self.defaults) - - self.defaults['_bset'] = ('none', 'none', exbset) - - root, ext = path.splitext(exbset) - - if exbset.endswith('.bset'): - bset = exbset - else: - bset = '%s.bset' % (exbset) - bsetname = bset if not path.exists(bsetname): @@ -168,6 +157,9 @@ class buildset: if l.startswith('%define'): ls = l.split() self.defaults[ls[1].strip()] = ('none', 'none', ls[2].strip()) + elif l.startswith('%include'): + ls = l.split(' ') + configs += self.parse(ls[1].strip()) else: raise error.general('invalid directive in build set files: %s' % (l)) else: @@ -180,6 +172,21 @@ class buildset: return configs + def load(self): + + exbset = self.opts.expand(self.bset, self.defaults) + + self.defaults['_bset'] = ('none', 'none', exbset) + + root, ext = path.splitext(exbset) + + if exbset.endswith('.bset'): + bset = exbset + else: + bset = '%s.bset' % (exbset) + + return self.parse(bset) + def make(self): _trace(self.opts, '_bset:%s: make' % (self.bset))