disable target/linux/package
[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 #JFFS2OPTS += -Xlzo -msize -Xlzari
8
9 jffs2-prepare:
10 $(MAKE) -C jffs2 prepare
11
12 jffs2-compile: prepare-targets
13 $(MAKE) -C jffs2 compile
14
15 jffs2-clean:
16 $(MAKE) -C jffs2 clean
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
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
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 $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-4MB"
33 $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-8MB"
34
35 jffs2-install-ib: compile-targets
36 mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
37 $(CP) $(STAGING_DIR)/bin/mkfs.jffs2 $(IB_DIR)/staging_dir_$(ARCH)/bin
38
39 prepare-targets: jffs2-prepare
40 compile-targets: jffs2-compile
41 install-targets: jffs2-install
42 install-ib: jffs2-install-ib
43 clean-targets: jffs2-clean
44
This page took 0.068218 seconds and 5 git commands to generate.