1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-05 14:54:40 +02:00
openwrt-xburst/target/linux/image/jffs2.mk
nbd ff69288edb target/linux/image rewrite
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3905 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-06-04 21:57:59 +00:00

27 lines
725 B
Makefile

ifneq ($(CONFIG_BIG_ENDIAN),y)
JFFS2OPTS := --pad --little-endian --squash
else
JFFS2OPTS := --pad --big-endian --squash
endif
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
$(call Image/Build,jffs2-64k)
$(call Image/Build,jffs2-128k)
endef
$(STAGING_DIR)/bin/mkfs.jffs2:
$(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 compile
jffs2-clean: FORCE
$(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 clean
rm -f $(KDIR)/root.jffs2*
compile-targets: $(STAGING_DIR)/bin/mkfs.jffs2
clean-targets: jffs2-clean