diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2017-06-09 14:13:58 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-12 15:08:31 +0100 |
commit | 66683198cf22d2dc0b18ec4d5f2218a51b8a1685 (patch) | |
tree | fd77b19b4b1c53bc38396bf79560490929b1f3c3 /meta/classes/package_rpm.bbclass | |
parent | b7a173ef4132ea2b4ecb4ba0dc9d7b3a4163383e (diff) | |
download | poky-66683198cf22d2dc0b18ec4d5f2218a51b8a1685.tar.gz |
package_rpm.bbclass: use multithreaded xz compression
RPM's default is single-threaded gz; the change greatly helps with
both buildtimes (when there is a small number of large-sized packages)
and disk space taken by resulting rpms.
(From OE-Core rev: f108c4d09926bd28e7a57b665fc8cb5373827780)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index a844c4d436..dc241975c3 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -644,6 +644,8 @@ python do_package_rpm () { | |||
644 | cmd = cmd + " --define '_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'" | 644 | cmd = cmd + " --define '_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'" |
645 | cmd = cmd + " --define '_use_internal_dependency_generator 0'" | 645 | cmd = cmd + " --define '_use_internal_dependency_generator 0'" |
646 | cmd = cmd + " --define '_binaries_in_noarch_packages_terminate_build 0'" | 646 | cmd = cmd + " --define '_binaries_in_noarch_packages_terminate_build 0'" |
647 | cmd = cmd + " --define '_binary_payload w6T.xzdio'" | ||
648 | cmd = cmd + " --define '_source_payload w6T.xzdio'" | ||
647 | if perfiledeps: | 649 | if perfiledeps: |
648 | cmd = cmd + " --define '__find_requires " + outdepends + "'" | 650 | cmd = cmd + " --define '__find_requires " + outdepends + "'" |
649 | cmd = cmd + " --define '__find_provides " + outprovides + "'" | 651 | cmd = cmd + " --define '__find_provides " + outprovides + "'" |