make the kernel compile process more generic
[openwrt.git] / openwrt / 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
6
7 jffs2-compile:
8 $(MAKE) -C jffs2 compile
9
10 jffs2-clean:
11 $(MAKE) -C jffs2 clean
12 rm -f $(KDIR)/root.jffs2*
13
14 $(KDIR)/root.jffs2-4MB:
15 @rm -rf $(KDIR)/root/jffs
16 $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x10000 -o $@ -d $(KDIR)/root
17
18 $(KDIR)/root.jffs2-8MB:
19 @rm -rf $(KDIR)/root/jffs
20 $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x20000 -o $@ -d $(KDIR)/root
21
22 jffs2-install: $(KDIR)/root.jffs2-4MB $(KDIR)/root.jffs2-8MB
23 $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-4MB"
24 $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-8MB"
25
26 prepare: jffs2-prepare
27 compile: jffs2-compile
28 install: jffs2-install
29 clean: jffs2-clean
30
This page took 0.045024 seconds and 5 git commands to generate.