make kernel ppp optional and remove cramfs support
[openwrt.git] / target / jffs2 / Makefile
1 include $(TOPDIR)/rules.mk
2
3 include ./jffs2root.mk
4
5 TARGETS:= $(BIN_DIR)/openwrt-generic-jffs2-4MB.trx $(BIN_DIR)/openwrt-generic-jffs2-8MB.trx
6
7 prepare: $(MTD_DIR)/.unpacked
8 compile: mtd
9 install: compile $(TARGETS)
10 clean: jffs2root-dirclean
11
12 $(BIN_DIR)/openwrt-generic-jffs2-4MB.trx:
13 $(MKFS_JFFS2) --pad --little-endian --squash -e 0x10000 \
14 -d $(TARGET_DIR) -o $(IMAGE)-4MB.jffs2
15 PATH=$(TARGET_PATH) trx -o $@ \
16 $(LINUX_KERNEL) -a 0x10000 $(IMAGE)-4MB.jffs2
17
18 $(BIN_DIR)/openwrt-generic-jffs2-8MB.trx:
19 $(MKFS_JFFS2) --pad --little-endian --squash -e 0x20000 \
20 -d $(TARGET_DIR) -o $(IMAGE)-8MB.jffs2
21 PATH=$(TARGET_PATH) trx -o $@ \
22 $(LINUX_KERNEL) -a 0x20000 $(IMAGE)-8MB.jffs2
23
24 $(BIN_DIR)/openwrt-wrt54g-jffs2.bin: $(BIN_DIR)/openwrt-generic-jffs2-4MB.trx
25 PATH=$(TARGET_PATH) addpattern -2 -i $< -o $@ -g
26 $(SED) "1s,^W54S,W54G," $@
27
28 $(BIN_DIR)/openwrt-wrt54gs-jffs2.bin: $(BIN_DIR)/openwrt-generic-jffs2-8MB.trx
29 PATH=$(TARGET_PATH) addpattern -2 -i $< -o $@ -g
30
31 $(BIN_DIR)/openwrt-motorola-jffs2-4MB.bin: $(BIN_DIR)/openwrt-generic-jffs2-4MB.trx
32 PATH=$(TARGET_PATH) motorola-bin $< $@
33
34 $(BIN_DIR)/openwrt-motorola-jffs2-8MB.bin: $(BIN_DIR)/openwrt-generic-jffs2-8MB.trx
35 PATH=$(TARGET_PATH) motorola-bin $< $@
36
This page took 0.040657 seconds and 5 git commands to generate.