[3/3,v2] package_ip.bbclass: add xz threading

Submitted by Alejandro del Castillo on Dec. 28, 2018, 4:27 p.m. | Patch ID: 157475

Details

Message ID 20181228162718.18815-1-alejandro.delcastillo@ni.com
State New
Headers show

Commit Message

Alejandro del Castillo Dec. 28, 2018, 4:27 p.m.
Before, threading was enabled via a patch to opkg-build. Now that
opkg-build provides a hook for extra arguments, use that.

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
---
 meta/classes/package_ipk.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index 5eb910ca31..acc8245ffb 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -8,7 +8,7 @@  IPKGCONF_SDK =  "${WORKDIR}/opkg-sdk.conf"
 PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks"
 
 # Program to be used to build opkg packages
-OPKGBUILDCMD ??= "opkg-build -Z xz"
+OPKGBUILDCMD ??= "opkg-build -Z xz -a '--threads 0'"
 
 OPKG_ARGS += "--force_postinstall --prefer-arch-to-version"
 OPKG_ARGS += "${@['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS") == "1"]}"

Comments

Khem Raj Dec. 28, 2018, 5:09 p.m.
On 12/28/18 8:27 AM, Alejandro del Castillo wrote:
> Before, threading was enabled via a patch to opkg-build. Now that
> opkg-build provides a hook for extra arguments, use that.
> 
> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
> ---
>   meta/classes/package_ipk.bbclass | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
> index 5eb910ca31..acc8245ffb 100644
> --- a/meta/classes/package_ipk.bbclass
> +++ b/meta/classes/package_ipk.bbclass
> @@ -8,7 +8,7 @@ IPKGCONF_SDK =  "${WORKDIR}/opkg-sdk.conf"
>   PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks"
>   
>   # Program to be used to build opkg packages
> -OPKGBUILDCMD ??= "opkg-build -Z xz"
> +OPKGBUILDCMD ??= "opkg-build -Z xz -a '--threads 0'"
>   
>   OPKG_ARGS += "--force_postinstall --prefer-arch-to-version"
>   OPKG_ARGS += "${@['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS") == "1"]}"
> 

thanks for addressing this.