image.mk: pass through $(CONFIG_PKG_BUILD_JOBS) to the mksquashfs -processors option
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 26 Sep 2011 02:02:35 +0000 (02:02 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 26 Sep 2011 02:02:35 +0000 (02:02 +0000)
SVN-Revision: 28305

include/image.mk

index 65d79f4db886f4ae104708ec4c2b3276296b1f74..276423971ff83d603aacb86ff6d17fc4f43a1c07 100644 (file)
@@ -87,7 +87,7 @@ else
   ifneq ($(CONFIG_TARGET_ROOTFS_SQUASHFS),)
     define Image/mkfs/squashfs
                @mkdir -p $(TARGET_DIR)/overlay
-               $(STAGING_DIR_HOST)/bin/mksquashfs4 $(TARGET_DIR) $(KDIR)/root.squashfs -nopad -noappend -root-owned -comp $(SQUASHFSCOMP) -processors 1
+               $(STAGING_DIR_HOST)/bin/mksquashfs4 $(TARGET_DIR) $(KDIR)/root.squashfs -nopad -noappend -root-owned -comp $(SQUASHFSCOMP) -processors $(if $(CONFIG_PKG_BUILD_JOBS),$(CONFIG_PKG_BUILD_JOBS),1)
                $(call Image/Build,squashfs)
     endef
   endif