ncurses: enable parallel build
PATCH 1/1 ncurses: enable parallel build
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.
--- package/ncurses/ncurses.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
package/ncurses/ncurses.mk +3 -1
@@ -46,7 +46,9 @@ NCURSES_CONF_OPT += --without-debug endif 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)
Signature · 1 line
1.8.5.5
PATCH 1/1 ncurses: enable parallel build
Dear Gustavo Zacarias,
Quoted 5 lines · Gustavo Zacarias
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 <[email protected]>
Without the patch:
real 0m29.326s
user 0m23.549s
sys 0m8.617s
With the patch:
real 0m18.839s
user 0m40.948s
sys 0m10.707s
A reduction of 11 seconds of the real build time, on a quad-core i7 laptop.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 ncurses: enable parallel build
In reply to Gustavo ZacariasQuoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> 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 <[email protected]>
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 NCURSES_CONF_OPT += --without-debug · line 46
Quoted 10 lines
--- package/ncurses/ncurses.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)package/ncurses/ncurses.mk +0
-0@@ -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.
Quoted 15 lines
package/ncurses/ncurses.mk +3
-1define 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)Signature · 6 lines
1.8.5.5 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 1 line
Bye, Peter Korsgaard