[Buildroot] [PATCH] ncurses: enable parallel build
Peter Korsgaard
jacmet at uclibc.org
Sun Jun 1 21:08:40 UTC 2014
>>>>> "Gustavo" == Gustavo Zacarias <gustavo at zacarias.com.ar> writes:
> Using a trick taken from gentoo enable parallel build when building for
> the target to reduce the build time for my test case from about 54s to
> 32s on a dual-core laptop.
> Signed-off-by: Gustavo Zacarias <gustavo at zacarias.com.ar>
I'm personally not convinced that the extra complexity is worth the
10-20s faster build in the context of a 30m-1h Buildroot build - But ok,
you guys do and atleast it is selfcontained.
> ---
> package/ncurses/ncurses.mk | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
> diff --git a/package/ncurses/ncurses.mk b/package/ncurses/ncurses.mk
> index 9805113..8e4b9e7 100644
> --- a/package/ncurses/ncurses.mk
> +++ b/package/ncurses/ncurses.mk
> @@ -46,7 +46,9 @@ NCURSES_CONF_OPT += --without-debug
> endif
I've added a comment above explaining where this magic comes from and
committed, thanks.
> define NCURSES_BUILD_CMDS
> - $(MAKE1) -C $(@D) DESTDIR=$(STAGING_DIR)
> + $(MAKE1) -C $(@D) DESTDIR=$(STAGING_DIR) sources
> + rm -rf $(@D)/misc/pc-files
> + $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR)
> endef
> ifneq ($(BR2_PREFER_STATIC_LIB),y)
> --
> 1.8.5.5
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list