]>
Commit | Line | Data |
---|---|---|
086f333f | 1 | ################################################################################ |
27bc59d4 | 2 | # |
dda90723 | 3 | # Build the jffs2 root filesystem image |
27bc59d4 | 4 | # |
086f333f | 5 | ################################################################################ |
27bc59d4 | 6 | |
9bdc27d8 YM |
7 | JFFS2_OPTS = -e $(BR2_TARGET_ROOTFS_JFFS2_EBSIZE) |
8 | SUMTOOL_OPTS = -e $(BR2_TARGET_ROOTFS_JFFS2_EBSIZE) | |
27bc59d4 | 9 | |
4b72854d | 10 | ifeq ($(BR2_TARGET_ROOTFS_JFFS2_PAD),y) |
dda90723 | 11 | ifneq ($(strip $(BR2_TARGET_ROOTFS_JFFS2_PADSIZE)),0x0) |
ddcaf144 PK |
12 | JFFS2_OPTS += --pad=$(strip $(BR2_TARGET_ROOTFS_JFFS2_PADSIZE)) |
13 | else | |
14 | JFFS2_OPTS += -p | |
dda90723 | 15 | endif |
72a85109 | 16 | SUMTOOL_OPTS += -p |
dda90723 | 17 | endif |
27bc59d4 | 18 | |
28f46894 | 19 | ifeq ($(BR2_TARGET_ROOTFS_JFFS2_LE),y) |
dda90723 | 20 | JFFS2_OPTS += -l |
72a85109 | 21 | SUMTOOL_OPTS += -l |
dda90723 | 22 | endif |
27bc59d4 | 23 | |
28f46894 | 24 | ifeq ($(BR2_TARGET_ROOTFS_JFFS2_BE),y) |
dda90723 | 25 | JFFS2_OPTS += -b |
536e98ef | 26 | SUMTOOL_OPTS += -b |
dda90723 | 27 | endif |
27bc59d4 | 28 | |
e3904a89 ML |
29 | ifeq ($(BR2_TARGET_ROOTFS_JFFS2_USE_CUSTOM_PAGESIZE),y) |
30 | JFFS2_OPTS += -s $(BR2_TARGET_ROOTFS_JFFS2_CUSTOM_PAGESIZE) | |
31 | endif | |
32 | ||
28f46894 BRF |
33 | ifeq ($(BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER),y) |
34 | JFFS2_OPTS += -n | |
536e98ef | 35 | SUMTOOL_OPTS += -n |
28f46894 | 36 | endif |
28f46894 | 37 | |
bd36a727 | 38 | ROOTFS_JFFS2_DEPENDENCIES = host-mtd |
27bc59d4 | 39 | |
536e98ef | 40 | ifneq ($(BR2_TARGET_ROOTFS_JFFS2_SUMMARY),) |
bd36a727 | 41 | define 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 | 45 | endef |
536e98ef | 46 | else |
bd36a727 | 47 | define ROOTFS_JFFS2_CMD |
847895d2 | 48 | $(MKFS_JFFS2) $(JFFS2_OPTS) -d $(TARGET_DIR) -o $@ |
bd36a727 | 49 | endef |
48b3e0c9 | 50 | endif |
dda90723 | 51 | |
b6842c40 | 52 | $(eval $(rootfs)) |