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. [Peter: add comment explaining why] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
3663bc4ff2
commit
8398016e94
|
@ -45,8 +45,12 @@ ifneq ($(BR2_ENABLE_DEBUG),y)
|
||||||
NCURSES_CONF_OPT += --without-debug
|
NCURSES_CONF_OPT += --without-debug
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# ncurses breaks with parallel build, but takes quite a while to
|
||||||
|
# build single threaded. Work around it similar to how Gentoo does
|
||||||
define NCURSES_BUILD_CMDS
|
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
|
endef
|
||||||
|
|
||||||
ifneq ($(BR2_PREFER_STATIC_LIB),y)
|
ifneq ($(BR2_PREFER_STATIC_LIB),y)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user