Changeset ce0f7a1 in rtems-source-builder


Ignore:
Timestamp:
Nov 9, 2013, 10:55:37 PM (7 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
46dcbfc
Parents:
873016c
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/setbuilder.py

    r873016c rce0f7a1  
    5959            self.macros = copy.copy(macros)
    6060        self.bset = bset
    61         self.bset_pkg = '%s-%s-set' % (self.macros.expand('%{_target}'), self.bset)
     61        _target = self.macros.expand('%{_target}')
     62        if len(_target):
     63            pkg_prefix = _target
     64        else:
     65            pkg_prefix = self.macros.expand('%{_host}')
     66        self.bset_pkg = '%s-%s-set' % (pkg_prefix, self.bset)
    6267        self.mail_header = ''
    6368        self.mail_report = ''
Note: See TracChangeset for help on using the changeset viewer.