- rm -rf $(BUILD_DIR)/root/jffs
-
- $(foreach SZ,$(JFFS2_BLOCKSIZE),\
- $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e $(patsubst %k,%KiB,$(SZ)) -o $(KDIR)/root.jffs2-$(SZ) -d $(BUILD_DIR)/root; \
- $(call add_jffs2_mark,$(KDIR)/root.jffs2-$(SZ)); \
- $(call Image/Build,jffs2-$(SZ)) \
- )
+ rm -rf $(TARGET_DIR)/jffs
+ $(foreach SZ,$(JFFS2_BLOCKSIZE),$(call Image/mkfs/jffs2/sub,$(SZ)))