]> code.ossystems Code Review - openembedded-core.git/commit
package_rpm: pass XZ_THREADS to rpm
authorRoss Burton <ross@burtonini.com>
Wed, 26 May 2021 14:59:10 +0000 (15:59 +0100)
committerSteve Sakoman <steve@sakoman.com>
Sat, 29 May 2021 00:22:21 +0000 (14:22 -1000)
commitb1e9fe67a85be516a0b32e0c91448df87a756e02
treecfdbc0dfbf7a6f57e3759958e4b34c5d685f4676
parent09b9027a9da8b5cf34e1f1c016d9d6bbbe904dcf
package_rpm: pass XZ_THREADS to rpm

By default RPM uses the number of cores as the number of threads to use,
which can result in quite antisocial memory usage.

As we control the macros for compression anyway, we can pass XZ_THREADS
to limit the number of threads if needed.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b9c983eb22a9b0771a0454216d1d7cbb5f3f8a16)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/package_rpm.bbclass