diff options
author | Chris Johns <chrisj@rtems.org> | 2014-05-13 23:26:09 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-05-13 23:26:09 +1000 |
commit | 9a15c40e1b2ac56a678e79519e1e78160009af92 (patch) | |
tree | 308f3f407a06c4073612b813d4d40ed0c5c5c60e /source-builder/sb/setbuilder.py | |
parent | 4.11/rtems-lm32: Use gcc-4.9.0 and fix gdb simulator build on Windows. (diff) | |
download | rtems-source-builder-9a15c40e1b2ac56a678e79519e1e78160009af92.tar.bz2 |
sb: Implement %source and %patch to manage source and patches.
Remove the numbered source and patches and automatically manage
sources and patches. This removes the overhead in maintaining large
collections of patches.
Diffstat (limited to 'source-builder/sb/setbuilder.py')
-rw-r--r-- | source-builder/sb/setbuilder.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source-builder/sb/setbuilder.py b/source-builder/sb/setbuilder.py index 690c37b..b772120 100644 --- a/source-builder/sb/setbuilder.py +++ b/source-builder/sb/setbuilder.py @@ -39,6 +39,7 @@ try: import options import path import reports + import sources import version except KeyboardInterrupt: print 'abort: user terminated' @@ -248,9 +249,10 @@ class buildset: self.macros.undefine(ls[1].strip()) elif ls[0] == '%include': configs += self.parse(ls[1].strip()) - else: - raise error.general('%s:%d: invalid directive in build set files: %s' % \ - (self.bset, lc, l)) + elif ls[0] == '%patch' or ls[0] == '%source': + def err(msg): + raise error.general('%s:%d: %s' % (self.bset, lc, msg)) + sources.process(ls[0][1:], ls[1:], self.macros, err) else: l = l.strip() c = build.find_config(l, self.configs) |