1
0
Prechádzať zdrojové kódy

Speed up compilation of packages.

@upstream
dir 7 rokov pred
rodič
commit
c434d52031
2 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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}
 	@$(CMD_TRACE) "compiling.. "
 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)
 endif
 	${MAKE} host-build $(MAKE_TRACE)

+ 1 - 1
mk/pkg-bottom.mk

@@ -158,7 +158,7 @@ spkg-install: ${ALL_POSTINST}
 ${_FAKE_COOKIE}: ${_BUILD_COOKIE}
 	@-rm -f ${_ALL_CONTROLS}
 	@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)
 ifneq ($(filter meson,${INSTALL_STYLE}),)
 	DESTDIR='$(WRKINST)' PATH='$(HOST_PATH)' \