]> Git Repo - buildroot-mgba.git/blame - fs/jffs2/jffs2.mk
fs: don't use := when not needed
[buildroot-mgba.git] / fs / jffs2 / jffs2.mk
CommitLineData
086f333f 1################################################################################
27bc59d4 2#
dda90723 3# Build the jffs2 root filesystem image
27bc59d4 4#
086f333f 5################################################################################
27bc59d4 6
9bdc27d8
YM
7JFFS2_OPTS = -e $(BR2_TARGET_ROOTFS_JFFS2_EBSIZE)
8SUMTOOL_OPTS = -e $(BR2_TARGET_ROOTFS_JFFS2_EBSIZE)
27bc59d4 9
4b72854d 10ifeq ($(BR2_TARGET_ROOTFS_JFFS2_PAD),y)
dda90723 11ifneq ($(strip $(BR2_TARGET_ROOTFS_JFFS2_PADSIZE)),0x0)
ddcaf144
PK
12JFFS2_OPTS += --pad=$(strip $(BR2_TARGET_ROOTFS_JFFS2_PADSIZE))
13else
14JFFS2_OPTS += -p
dda90723 15endif
72a85109 16SUMTOOL_OPTS += -p
dda90723 17endif
27bc59d4 18
28f46894 19ifeq ($(BR2_TARGET_ROOTFS_JFFS2_LE),y)
dda90723 20JFFS2_OPTS += -l
72a85109 21SUMTOOL_OPTS += -l
dda90723 22endif
27bc59d4 23
28f46894 24ifeq ($(BR2_TARGET_ROOTFS_JFFS2_BE),y)
dda90723 25JFFS2_OPTS += -b
536e98ef 26SUMTOOL_OPTS += -b
dda90723 27endif
27bc59d4 28
e3904a89
ML
29ifeq ($(BR2_TARGET_ROOTFS_JFFS2_USE_CUSTOM_PAGESIZE),y)
30JFFS2_OPTS += -s $(BR2_TARGET_ROOTFS_JFFS2_CUSTOM_PAGESIZE)
31endif
32
28f46894
BRF
33ifeq ($(BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER),y)
34JFFS2_OPTS += -n
536e98ef 35SUMTOOL_OPTS += -n
28f46894 36endif
28f46894 37
bd36a727 38ROOTFS_JFFS2_DEPENDENCIES = host-mtd
27bc59d4 39
536e98ef 40ifneq ($(BR2_TARGET_ROOTFS_JFFS2_SUMMARY),)
bd36a727 41define ROOTFS_JFFS2_CMD
2e725848
YM
42 $(MKFS_JFFS2) $(JFFS2_OPTS) -d $(TARGET_DIR) -o [email protected]
43 $(SUMTOOL) $(SUMTOOL_OPTS) -i [email protected] -o $@
847895d2 44 rm [email protected]
bd36a727 45endef
536e98ef 46else
bd36a727 47define ROOTFS_JFFS2_CMD
847895d2 48 $(MKFS_JFFS2) $(JFFS2_OPTS) -d $(TARGET_DIR) -o $@
bd36a727 49endef
48b3e0c9 50endif
dda90723 51
b6842c40 52$(eval $(rootfs))
This page took 0.796661 seconds and 4 git commands to generate.