fix annoying make parse error
[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 $(STAGING_DIR)/bin/mkfs.jffs2:
18 $(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 compile
19
20 jffs2-clean: FORCE
21 $(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 clean
22 rm -f $(KDIR)/root.jffs2*
23
24 compile-targets: $(STAGING_DIR)/bin/mkfs.jffs2
25 clean-targets: jffs2-clean
26
This page took 0.038927 seconds and 5 git commands to generate.