2006-05-30 22:38:38 +03:00
|
|
|
ifneq ($(CONFIG_BIG_ENDIAN),y)
|
2005-06-12 00:18:26 +03:00
|
|
|
JFFS2OPTS := --pad --little-endian --squash
|
2006-01-12 22:21:55 +02:00
|
|
|
else
|
|
|
|
JFFS2OPTS := --pad --big-endian --squash
|
|
|
|
endif
|
|
|
|
|
2006-06-05 00:57:59 +03:00
|
|
|
define Image/mkfs/jffs2
|
|
|
|
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
|
2005-06-12 00:18:26 +03:00
|
|
|
|
2006-06-05 00:57:59 +03:00
|
|
|
$(call Image/Build,jffs2-64k)
|
|
|
|
$(call Image/Build,jffs2-128k)
|
|
|
|
endef
|
2005-06-12 00:18:26 +03:00
|
|
|
|
2006-06-05 00:57:59 +03:00
|
|
|
$(STAGING_DIR)/bin/mkfs.jffs2:
|
|
|
|
$(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 compile
|
2005-06-12 00:18:26 +03:00
|
|
|
|
2006-06-01 02:29:05 +03:00
|
|
|
jffs2-clean: FORCE
|
2006-06-05 00:57:59 +03:00
|
|
|
$(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 clean
|
2005-06-12 00:18:26 +03:00
|
|
|
rm -f $(KDIR)/root.jffs2*
|
|
|
|
|
2006-06-05 00:57:59 +03:00
|
|
|
compile-targets: $(STAGING_DIR)/bin/mkfs.jffs2
|
2005-10-22 04:40:50 +03:00
|
|
|
clean-targets: jffs2-clean
|
2005-06-12 00:18:26 +03:00
|
|
|
|