openwrt的编译系统是如何生成squashfs文件系统的
作者:互联网
答:请看include/image.mk中的以下定义:
define Image/mkfs/squashfs
$(STAGING_DIR_HOST)/bin/mksquashfs4 $(call mkfs_target_dir,$(1)) $@ \
-nopad -noappend -root-owned \
-comp $(SQUASHFSCOMP) $(SQUASHFSOPT) \
-processors 1 \
$(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
endef
SQUASHFSOPT := -b $(SQUASHFS_BLOCKSIZE)
SQUASHFS_BLOCKSIZE := $(CONFIG_TARGET_SQUASHFS_BLOCK_SIZE)k
从以上定义可以看出制作squashfs的关键参数由openwrt中的配置项CONFIG_TARGET_SQUASHFS_BLOCK_SIZE来决定,通过修改此配置项的值即可改变squashfs文件系统
标签:BLOCKSIZE,SQUASHFSOPT,squashfs,mkfs,SQUASHFS,DATE,编译系统,openwrt 来源: https://www.cnblogs.com/dakewei/p/10346348.html