1 ################################################################################
3 # Build the jffs2 root filesystem image
5 ################################################################################
7 JFFS2_OPTS
:= -e
$(BR2_TARGET_ROOTFS_JFFS2_EBSIZE
)
8 SUMTOOL_OPTS
:= $(JFFS2_OPTS
)
10 ifeq ($(BR2_TARGET_ROOTFS_JFFS2_PAD
),y
)
11 ifneq ($(strip $(BR2_TARGET_ROOTFS_JFFS2_PADSIZE
)),0x0)
12 JFFS2_OPTS
+= --pad
=$(strip $(BR2_TARGET_ROOTFS_JFFS2_PADSIZE
))
19 ifeq ($(BR2_TARGET_ROOTFS_JFFS2_LE
),y
)
24 ifeq ($(BR2_TARGET_ROOTFS_JFFS2_BE
),y
)
29 ifeq ($(BR2_TARGET_ROOTFS_JFFS2_USE_CUSTOM_PAGESIZE
),y
)
30 JFFS2_OPTS
+= -s
$(BR2_TARGET_ROOTFS_JFFS2_CUSTOM_PAGESIZE
)
33 ifeq ($(BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
),y
)
38 ROOTFS_JFFS2_DEPENDENCIES
= host-mtd
40 ifneq ($(BR2_TARGET_ROOTFS_JFFS2_SUMMARY
),)
41 define ROOTFS_JFFS2_CMD
42 $(MKFS_JFFS2
) $(JFFS2_OPTS
) -d
$(TARGET_DIR
) -o
$@.nosummary
43 $(SUMTOOL
) $(SUMTOOL_OPTS
) -i
$@.nosummary
-o
$@
47 define ROOTFS_JFFS2_CMD
48 $(MKFS_JFFS2
) $(JFFS2_OPTS
) -d
$(TARGET_DIR
) -o
$@
52 $(eval
$(call ROOTFS_TARGET
,jffs2
))