a0e14daa90c89ea3ed8ce3f6b35f331135f08ad6
[openwrt.git] / target / linux / image / jffs2.mk
1 ifneq ($(CONFIG_BIG_ENDIAN),y)
2 JFFS2OPTS := --pad --little-endian --squash
3 else
4 JFFS2OPTS := --pad --big-endian --squash
5 endif
6
7 define Image/mkfs/jffs2
8 rm -rf $(BUILD_DIR)/root/jffs
9
10 $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x10000 -o $(KDIR)/root.jffs2-64k -d $(BUILD_DIR)/root
11 $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x20000 -o $(KDIR)/root.jffs2-128k -d $(BUILD_DIR)/root
12
13 $(call Image/Build,jffs2-64k)
14 $(call Image/Build,jffs2-128k)
15 endef
16
17 jffs2-source: FORCE
18 $(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 source
19
20 $(STAGING_DIR)/bin/mkfs.jffs2:
21 $(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 compile
22
23 jffs2-clean: FORCE
24 $(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 clean
25 rm -f $(KDIR)/root.jffs2*
26
27 source: jffs2-source
28 compile-targets: $(STAGING_DIR)/bin/mkfs.jffs2
29 clean-targets: jffs2-clean
30
This page took 0.038828 seconds and 3 git commands to generate.