backport base-files fix from whiterussian [2308],
[openwrt.git] / target / linux / image / jffs2.mk
1 JFFS2OPTS := --pad --little-endian --squash
2 #JFFS2OPTS += -Xlzo -msize -Xlzari
3
4 jffs2-prepare:
5 $(MAKE) -C jffs2 prepare $(MAKE_TRACE)
6
7 jffs2-compile: prepare-targets
8 $(MAKE) -C jffs2 compile $(MAKE_TRACE)
9
10 jffs2-clean:
11 $(MAKE) -C jffs2 clean $(MAKE_TRACE)
12 rm -f $(KDIR)/root.jffs2*
13
14 $(KDIR)/root.jffs2-4MB: install-prepare
15 @rm -rf $(KDIR)/root/jffs
16 $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x10000 -o $@ -d $(KDIR)/root $(MAKE_TRACE)
17
18 $(KDIR)/root.jffs2-8MB: install-prepare
19 @rm -rf $(KDIR)/root/jffs
20 $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x20000 -o $@ -d $(KDIR)/root $(MAKE_TRACE)
21
22 jffs2-install: compile-targets $(KDIR)/root.jffs2-4MB $(KDIR)/root.jffs2-8MB $(BOARD)-compile
23 $(TRACE) target/linux/image/$(BOARD)/install
24 $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-4MB"
25 $(TRACE) target/linux/image/$(BOARD)/install
26 $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-8MB"
27
28 jffs2-install-ib:
29 mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
30 cp $(STAGING_DIR)/bin/mkfs.jffs2 $(IB_DIR)/staging_dir_$(ARCH)/bin
31
32 prepare-targets: jffs2-prepare
33 compile-targets: jffs2-compile
34 install-targets: jffs2-install
35 install-ib: jffs2-install-ib
36 clean-targets: jffs2-clean
37
This page took 0.041809 seconds and 5 git commands to generate.