X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e605dff48fdff1a9cf6da69883da28e6fd707513..41e9c172bac54d5dc41f79aa60c766de58a10f13:/include/toolchain-build.mk

diff --git a/include/toolchain-build.mk b/include/toolchain-build.mk
index 08054ac9c..a0bc4061f 100644
--- a/include/toolchain-build.mk
+++ b/include/toolchain-build.mk
@@ -7,9 +7,12 @@
 
 override CONFIG_AUTOREBUILD=
 
+REAL_STAGING_DIR_HOST:=$(STAGING_DIR_HOST)
 STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
 BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
 
+TOOLCHAIN_JOBS?=$(if $(CONFIG_TOOLCHAIN_PARALLEL),-j$(CONFIG_PKG_BUILD_JOBS))
+
 include $(INCLUDE_DIR)/host-build.mk
 
 HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared