build: move the SH_FUNC eval to the beginning of the opkg control file build command...
[openwrt/openwrt.git] / include / toolchain-build.mk
index b9a94316fce1298ea38aeb86b09b20e807e8d1bf..a0bc4061fcfcfc6c488e30ac985ccf4c709f9d5d 100644 (file)
@@ -7,7 +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