diff options
author | Chris Johns <chrisj@rtems.org> | 2016-03-07 11:59:51 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-03-07 15:02:25 +1100 |
commit | e02eaa67b6ed0c49b660a3d32544337fcb87e5a1 (patch) | |
tree | 6627597a545115a8e2cedabc57365849d6b86b68 | |
parent | sb: Update code base to support Python3 and Python2. (diff) | |
download | rtems-source-builder-e02eaa67b6ed0c49b660a3d32544337fcb87e5a1.tar.bz2 |
qemu: Add a package name to create a tarball.
-rw-r--r-- | bare/config/devel/qemu.bset | 5 | ||||
-rw-r--r-- | source-builder/sb/setbuilder.py | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bare/config/devel/qemu.bset b/bare/config/devel/qemu.bset index e15339d..db147fe 100644 --- a/bare/config/devel/qemu.bset +++ b/bare/config/devel/qemu.bset @@ -5,6 +5,11 @@ %define release 1 # +# Name of the package. +# +package: qemu-%{qemu_version}-%{_host}-%{release} + +# # A magic internal path that would break if changes in the defaults.mc # macro file are made. # diff --git a/source-builder/sb/setbuilder.py b/source-builder/sb/setbuilder.py index e213d03..d899916 100644 --- a/source-builder/sb/setbuilder.py +++ b/source-builder/sb/setbuilder.py @@ -197,7 +197,7 @@ class buildset: if (self.opts.get_arg('--bset-tar-file') or self.opts.canadian_cross()) \ and not _build.macros.get('%{_disable_packaging}'): path.mkdir(tardir) - tar = path.join(tardir, _build.config.expand('%s.tar.bz2' % (self.bset_pkg))) + tar = path.join(tardir, _build.config.expand('%s.tar.bz2' % (_build.main_package().name()))) log.notice('tarball: %s' % (os.path.relpath(path.host(tar)))) if not self.opts.dry_run(): tmproot = _build.config.expand('%{_tmproot}') |