fix kmod-fuse build on 2.4
[openwrt.git] / target / linux / image / jffs2.mk
1 ifneq ($(BR2_mips),y)
2 JFFS2OPTS := --pad --little-endian --squash
3 else
4 JFFS2OPTS := --pad --big-endian --squash
5 endif
6
7 #JFFS2OPTS += -Xlzo -msize -Xlzari
8
9 jffs2-prepare:
10 $(MAKE) -C jffs2 prepare $(MAKE_TRACE)
11
12 jffs2-compile: prepare-targets
13 $(MAKE) -C jffs2 compile $(MAKE_TRACE)
14
15 jffs2-clean:
16 $(MAKE) -C jffs2 clean $(MAKE_TRACE)
17 rm -f $(KDIR)/root.jffs2*
18
19 $(KDIR)/root.jffs2-4MB: install-prepare
20 @rm -rf $(KDIR)/root/jffs
21 $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x10000 -o $@ -d $(KDIR)/root $(MAKE_TRACE)
22
23 $(KDIR)/root.jffs2-8MB: install-prepare
24 @rm -rf $(KDIR)/root/jffs
25 $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x20000 -o $@ -d $(KDIR)/root $(MAKE_TRACE)
26
27 ifeq ($(IB),)
28 jffs2-install: compile-targets $(BOARD)-compile
29 endif
30
31 jffs2-install: $(KDIR)/root.jffs2-4MB $(KDIR)/root.jffs2-8MB
32 $(TRACE) target/linux/image/$(BOARD)/install
33 $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-4MB"
34 $(TRACE) target/linux/image/$(BOARD)/install
35 $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-8MB"
36
37 jffs2-install-ib: compile-targets
38 mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
39 $(CP) $(STAGING_DIR)/bin/mkfs.jffs2 $(IB_DIR)/staging_dir_$(ARCH)/bin
40
41 prepare-targets: jffs2-prepare
42 compile-targets: jffs2-compile
43 install-targets: jffs2-install
44 install-ib: jffs2-install-ib
45 clean-targets: jffs2-clean
46
This page took 0.051042 seconds and 5 git commands to generate.