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 JFFS2_OPTS
+= -s
$(BR2_TARGET_ROOTFS_JFFS2_PAGESIZE
)
30 ifeq ($(BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
),y
)
35 ROOTFS_JFFS2_DEPENDENCIES
= host-mtd
37 ifneq ($(BR2_TARGET_ROOTFS_JFFS2_SUMMARY
),)
38 define ROOTFS_JFFS2_CMD
39 $(MKFS_JFFS2
) $(JFFS2_OPTS
) -d
$(TARGET_DIR
) -o
$@.nosummary
&& \
40 $(SUMTOOL
) $(SUMTOOL_OPTS
) -i
$@.nosummary
-o
$@
&& \
44 define ROOTFS_JFFS2_CMD
45 $(MKFS_JFFS2
) $(JFFS2_OPTS
) -d
$(TARGET_DIR
) -o
$@
49 $(eval
$(call ROOTFS_TARGET
,jffs2
))