tools/cmake: fix parallel build with Make 4.2+

Avoid using the --parallel argument to the CMake bootstrap, as that doesn't
allow us to remove the -j argument. Instead, pass the HOST_JOBS arguments
in MAKEFLAGS.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
v19.07.3_mercusys_ac12_duma
Matthias Schiffer 8 years ago
parent 6fb212f293
commit 96db107524
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

@ -19,10 +19,11 @@ HOST_CONFIGURE_PARALLEL:=1
include $(INCLUDE_DIR)/host-build.mk
HOST_CONFIGURE_CMD := MAKEFLAGS="$(HOST_JOBS)" $(BASH) ./configure
HOST_CONFIGURE_VARS :=
HOST_CONFIGURE_ARGS := \
--prefix=$(STAGING_DIR_HOST) \
$(if $(MAKE_JOBSERVER),--parallel="$(MAKE_JOBSERVER)")
--prefix=$(STAGING_DIR_HOST)
$(eval $(call HostBuild))

Loading…
Cancel
Save