blob: 13a49f9170bc231bcebe800da9d9c47e38634569 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001Pass --threads=0 to xz so that it will use as many threads as there are cores to compress the packages. This makes qemu's do_package_ipk run in 34s instead of 275s on my machine.
2
3Upstream-Status: Inappropriate (ugly but works, discussing with upstream now)
4Signed-off-by: Ross Burton <ross.burton@intel.com>
5
6diff --git a/opkg-build b/opkg-build
7index 0050c2b..93a7956 100755
8--- a/opkg-build
9+++ b/opkg-build
10@@ -230,6 +230,8 @@ if gzip --help 2>&1 | grep -- "-T" > /dev/null; then
11 fi
12 if [ $compressor = "gzip" ] ; then
13 compressorargs=$zipargs
14+elif [ $compressor = "xz" ] ; then
15+ compressorargs="--threads 0"
16 fi
17
18 tsortargs=