[Buildroot] [PATCH] qt5webengine: propagate parallel flag to ninja

Gaël PORTAY gael.portay at savoirfairelinux.com
Fri Jun 29 04:23:50 UTC 2018


I'am responding to myself...

On Thu, Jun 28, 2018 at 05:33:28PM -0400, Gaël PORTAY wrote:
> (...)
>
> This commit sets the NINJAFLAGS using the variable BR2_JLEVEL to limits
> the number of cores used by ninja.
> 

Use PARALLEL_JOBS.

> Fixes:
> 	virtual memory exhausted: Cannot allocate memory
> 
> [1]: https://ninja-build.org/manual.html#_comparison_to_make
> [2]: https://github.com/qt/qtwebengine/blob/v5.11.1/src/core/gn_run.pro#L49-L53
> 
> Signed-off-by: Gaël PORTAY <gael.portay at savoirfairelinux.com>
> ---
>  package/qt5/qt5webengine/qt5webengine.mk | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/package/qt5/qt5webengine/qt5webengine.mk b/package/qt5/qt5webengine/qt5webengine.mk
> index e527e6bc36..efdb6e49ec 100644
> --- a/package/qt5/qt5webengine/qt5webengine.mk
> +++ b/package/qt5/qt5webengine/qt5webengine.mk
> @@ -48,6 +48,8 @@ define QT5WEBENGINE_PYTHON2_SYMLINK
>  endef
>  QT5WEBENGINE_PRE_CONFIGURE_HOOKS += QT5WEBENGINE_PYTHON2_SYMLINK
>  
> +QT5WEBENGINE_ENV += NINJAFLAGS="-j$(BR2_JLEVEL)"
> +

Use PARALLEL_JOBS.

>  ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
>  define QT5WEBENGINE_CREATE_HOST_PKG_CONFIG
>  	sed s%@HOST_DIR@%$(HOST_DIR)%g $(QT5WEBENGINE_PKGDIR)/host-pkg-config.in > $(@D)/host-bin/host-pkg-config
> -- 
> 2.11.0
> 



More information about the buildroot mailing list