- rm -rf $(BUILD_DIR)/root/jffs
-
- $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x10000 -o $(KDIR)/root.jffs2-64k -d $(BUILD_DIR)/root
- $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x20000 -o $(KDIR)/root.jffs2-128k -d $(BUILD_DIR)/root
- $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x40000 -o $(KDIR)/root.jffs2-256k -d $(BUILD_DIR)/root
-
-
- # add End-of-Filesystem markers
- $(call add_jffs2_mark,$(KDIR)/root.jffs2-64k)
- $(call add_jffs2_mark,$(KDIR)/root.jffs2-128k)
- $(call add_jffs2_mark,$(KDIR)/root.jffs2-256k)
-
- $(call Image/Build,jffs2-64k)
- $(call Image/Build,jffs2-128k)
- $(call Image/Build,jffs2-256k)
+ rm -rf $(TARGET_DIR)/jffs
+ $(foreach SZ,$(JFFS2_BLOCKSIZE),$(call Image/mkfs/jffs2/sub,$(SZ)))