[PATCH] image: let mksquashfs4 use all processors
Stijn Tintel
stijn at linux-ipv6.be
Sat Feb 19 07:54:22 PST 2022
Drop the -processors argument from the mksquashfs4 call, so it will use
all available processors. This dramatically reduces the time to create
squashfs filesystems.
The times below are observed when building an image for my main router,
the WatchGuard Firebox M300 (qoriq target):
Before:
real 4m45,973s
After:
real 0m23,497s
Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
---
include/image.mk | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/image.mk b/include/image.mk
index 275a0adcac..a7b04bac6b 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -229,8 +229,7 @@ $(eval $(foreach S,$(NAND_BLOCKSIZE),$(call Image/mkfs/jffs2-nand/template,$(S))
define Image/mkfs/squashfs-common
$(STAGING_DIR_HOST)/bin/mksquashfs4 $(call mkfs_target_dir,$(1)) $@ \
-nopad -noappend -root-owned \
- -comp $(SQUASHFSCOMP) $(SQUASHFSOPT) \
- -processors 1
+ -comp $(SQUASHFSCOMP) $(SQUASHFSOPT)
endef
ifeq ($(CONFIG_TARGET_ROOTFS_SECURITY_LABELS),y)
--
2.34.1
More information about the openwrt-devel
mailing list