summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg-utils
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-03-19 11:38:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-20 09:59:32 +0000
commiteeafb851244f3aa71181776f7a3b5c5e28cbe19a (patch)
tree339cb40b0b4dea29740e932e7d662103bd87b56e /meta/recipes-devtools/opkg-utils
parentda4e85506068ebabe6eca50fe337fdb466f02070 (diff)
downloadpoky-eeafb851244f3aa71181776f7a3b5c5e28cbe19a.tar.gz
opkg-utils: use multithreaded xz when building packages
(From OE-Core rev: 369c43cca4f00272e0f9eb8b939f38f00dc43cc3) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg-utils')
-rw-r--r--meta/recipes-devtools/opkg-utils/opkg-utils/threaded-xz.patch18
-rw-r--r--meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb1
2 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/threaded-xz.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/threaded-xz.patch
new file mode 100644
index 0000000000..13a49f9170
--- /dev/null
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils/threaded-xz.patch
@@ -0,0 +1,18 @@
1Pass --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=
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb
index 081d8d8b7d..0487c5f305 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb
@@ -11,6 +11,7 @@ SRC_URI = "http://git.yoctoproject.org/cgit/cgit.cgi/${BPN}/snapshot/${BPN}-${PV
11 file://0001-Switch-all-scripts-to-use-Python-3.x.patch \ 11 file://0001-Switch-all-scripts-to-use-Python-3.x.patch \
12 file://0001-Only-use-sort-name-on-versions-of-tar-which-support-.patch \ 12 file://0001-Only-use-sort-name-on-versions-of-tar-which-support-.patch \
13 file://0002-opkg-build-Use-local-time-for-build_date-since-opkg-.patch \ 13 file://0002-opkg-build-Use-local-time-for-build_date-since-opkg-.patch \
14 file://threaded-xz.patch \
14" 15"
15SRC_URI_append_class-native = " file://tar_ignore_error.patch" 16SRC_URI_append_class-native = " file://tar_ignore_error.patch"
16UPSTREAM_CHECK_URI = "http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/refs/" 17UPSTREAM_CHECK_URI = "http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/refs/"