Browse Source

Speed up compilation of packages.

@upstream
dir 7 years ago
parent
commit
c434d52031
2 changed files with 2 additions and 2 deletions
  1. 1 1
      mk/host-bottom.mk
  2. 1 1
      mk/pkg-bottom.mk

+ 1 - 1
mk/host-bottom.mk

@@ -78,7 +78,7 @@ host-build:
 ${_HOST_BUILD_COOKIE}: ${_HOST_CONFIGURE_COOKIE}
 ${_HOST_BUILD_COOKIE}: ${_HOST_CONFIGURE_COOKIE}
 	@$(CMD_TRACE) "compiling.. "
 	@$(CMD_TRACE) "compiling.. "
 ifneq (${HOST_STYLE},manual)
 ifneq (${HOST_STYLE},manual)
-	cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
+	cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -j${ADK_MAKE_JOBS} -f ${MAKE_FILE} \
 	    ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET} $(MAKE_TRACE)
 	    ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET} $(MAKE_TRACE)
 endif
 endif
 	${MAKE} host-build $(MAKE_TRACE)
 	${MAKE} host-build $(MAKE_TRACE)

+ 1 - 1
mk/pkg-bottom.mk

@@ -158,7 +158,7 @@ spkg-install: ${ALL_POSTINST}
 ${_FAKE_COOKIE}: ${_BUILD_COOKIE}
 ${_FAKE_COOKIE}: ${_BUILD_COOKIE}
 	@-rm -f ${_ALL_CONTROLS}
 	@-rm -f ${_ALL_CONTROLS}
 	@mkdir -p '${STAGING_PKG_DIR}/stamps' ${WRKINST} '${STAGING_TARGET_DIR}/scripts'
 	@mkdir -p '${STAGING_PKG_DIR}/stamps' ${WRKINST} '${STAGING_TARGET_DIR}/scripts'
-	@${MAKE} ${_ALL_CONTROLS} $(MAKE_TRACE)
+	@${MAKE} -j${ADK_MAKE_JOBS} ${_ALL_CONTROLS} $(MAKE_TRACE)
 	@env ${MAKE_ENV} ${MAKE} pre-install $(MAKE_TRACE)
 	@env ${MAKE_ENV} ${MAKE} pre-install $(MAKE_TRACE)
 ifneq ($(filter meson,${INSTALL_STYLE}),)
 ifneq ($(filter meson,${INSTALL_STYLE}),)
 	DESTDIR='$(WRKINST)' PATH='$(HOST_PATH)' \
 	DESTDIR='$(WRKINST)' PATH='$(HOST_PATH)' \