summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/setbuilder.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-11-10 09:55:37 +1100
committerChris Johns <chrisj@rtems.org>2013-11-10 09:55:37 +1100
commitce0f7a19c367473f122626d93e556a1e595bd348 (patch)
treed54b0f8b44c333e53cfa06f302ed9d6e89991179 /source-builder/sb/setbuilder.py
parentAdd Bare support for GNU tools. (diff)
downloadrtems-source-builder-ce0f7a19c367473f122626d93e556a1e595bd348.tar.bz2
Add the host to the build set tar file name if no target.
If building a host package use the host as the package tar file name prefix. This means the tar files will all start with the host name.
Diffstat (limited to 'source-builder/sb/setbuilder.py')
-rw-r--r--source-builder/sb/setbuilder.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/source-builder/sb/setbuilder.py b/source-builder/sb/setbuilder.py
index 1427ead..1491e9b 100644
--- a/source-builder/sb/setbuilder.py
+++ b/source-builder/sb/setbuilder.py
@@ -58,7 +58,12 @@ class buildset:
else:
self.macros = copy.copy(macros)
self.bset = bset
- self.bset_pkg = '%s-%s-set' % (self.macros.expand('%{_target}'), self.bset)
+ _target = self.macros.expand('%{_target}')
+ if len(_target):
+ pkg_prefix = _target
+ else:
+ pkg_prefix = self.macros.expand('%{_host}')
+ self.bset_pkg = '%s-%s-set' % (pkg_prefix, self.bset)
self.mail_header = ''
self.mail_report = ''
self.build_failure = None