xref: /OK3568_Linux_fs/buildroot/fs/erofs/erofs.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# Build the EROFS root filesystem image
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunROOTFS_EROFS_DEPENDENCIES = host-erofs-utils
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunifeq ($(BR2_TARGET_ROOTFS_EROFS_LZ4HC),y)
10*4882a593SmuzhiyunROOTFS_EROFS_ARGS += -zlz4hc
11*4882a593Smuzhiyunendif
12*4882a593Smuzhiyun
13*4882a593Smuzhiyunifneq ($(BR2_TARGET_ROOTFS_EROFS_PCLUSTERSIZE),0)
14*4882a593SmuzhiyunROOTFS_EROFS_ARGS += -C$(strip $(BR2_TARGET_ROOTFS_EROFS_PCLUSTERSIZE))
15*4882a593Smuzhiyunendif
16*4882a593Smuzhiyun
17*4882a593Smuzhiyundefine ROOTFS_EROFS_CMD
18*4882a593Smuzhiyun	$(HOST_DIR)/bin/mkfs.erofs $(ROOTFS_EROFS_ARGS) $@ $(TARGET_DIR)
19*4882a593Smuzhiyunendef
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun$(eval $(rootfs))
22