mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
fs/squashfs: honour the number of parallel jobs
By default, mksquashfs uses all the CPUs available, like us with BR2_JLEVEL=0. However, by setting BR21_JLEVEL to non-zero, a user volutarily limits the number of jobbs allowed to run concurrently (for various reasons, like this is not a priority task on the machine; or like the autobuilders, to spread the load accross multiple runs without overloading the machine). So, propagate tthe parallelisn settings down to mksquashfs, to repect the user's will. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Clayton Shotwell <clayton.shotwell@rockwellcollins.com> Tested-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
6e661afd27
commit
62e626b2ab
@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs
|
ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs
|
||||||
|
|
||||||
|
ROOTFS_SQUASHFS_ARGS = -noappend -processors $(PARALLEL_JOBS)
|
||||||
|
|
||||||
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZ4),y)
|
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZ4),y)
|
||||||
ROOTFS_SQUASHFS_ARGS += -comp lz4 -Xhc
|
ROOTFS_SQUASHFS_ARGS += -comp lz4 -Xhc
|
||||||
else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y)
|
else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y)
|
||||||
@ -19,8 +21,7 @@ ROOTFS_SQUASHFS_ARGS += -comp gzip
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
define ROOTFS_SQUASHFS_CMD
|
define ROOTFS_SQUASHFS_CMD
|
||||||
$(HOST_DIR)/bin/mksquashfs $(TARGET_DIR) $@ -noappend \
|
$(HOST_DIR)/bin/mksquashfs $(TARGET_DIR) $@ $(ROOTFS_SQUASHFS_ARGS)
|
||||||
$(ROOTFS_SQUASHFS_ARGS)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call ROOTFS_TARGET,squashfs))
|
$(eval $(call ROOTFS_TARGET,squashfs))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user