summaryrefslogtreecommitdiffstats
path: root/target/jffs2/Makefile
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-03-06 03:34:52 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-03-06 03:34:52 +0000
commitf77b88d124ea1c900f9cf5e04046939aad48bbe1 (patch)
tree4c6922d42353c39b46dcd7cd09982fbe9c1f9765 /target/jffs2/Makefile
parent7d3d15851a890855f0a752304fa50e5d8e927222 (diff)
nbd's makefile/menuconfig rewrite
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@307 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/jffs2/Makefile')
-rw-r--r--target/jffs2/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/target/jffs2/Makefile b/target/jffs2/Makefile
new file mode 100644
index 000000000..ff63e6fc2
--- /dev/null
+++ b/target/jffs2/Makefile
@@ -0,0 +1,36 @@
+include $(TOPDIR)/rules.mk
+
+include ./jffs2root.mk
+
+TARGETS:= $(BIN_DIR)/openwrt-generic-jffs2-4MB.trx $(BIN_DIR)/openwrt-generic-jffs2-8MB.trx
+
+prepare: $(MTD_DIR)/.unpacked
+compile: mtd
+install: compile $(TARGETS)
+clean: jffs2root-dirclean
+
+$(BIN_DIR)/openwrt-generic-jffs2-4MB.trx:
+ $(MKFS_JFFS2) --pad --little-endian --squash -e 0x10000 \
+ -d $(TARGET_DIR) -o $(IMAGE)-4MB.jffs2
+ PATH=$(TARGET_PATH) trx -o $@ \
+ $(LINUX_KERNEL) -a 0x10000 $(IMAGE)-4MB.jffs2
+
+$(BIN_DIR)/openwrt-generic-jffs2-8MB.trx:
+ $(MKFS_JFFS2) --pad --little-endian --squash -e 0x20000 \
+ -d $(TARGET_DIR) -o $(IMAGE)-8MB.jffs2
+ PATH=$(TARGET_PATH) trx -o $@ \
+ $(LINUX_KERNEL) -a 0x20000 $(IMAGE)-8MB.jffs2
+
+$(BIN_DIR)/openwrt-wrt54g-jffs2.bin: $(BIN_DIR)/openwrt-generic-jffs2-4MB.trx
+ PATH=$(TARGET_PATH) addpattern -2 -i $< -o $@ -g
+ $(SED) "1s,^W54S,W54G," $@
+
+$(BIN_DIR)/openwrt-wrt54gs-jffs2.bin: $(BIN_DIR)/openwrt-generic-jffs2-8MB.trx
+ PATH=$(TARGET_PATH) addpattern -2 -i $< -o $@ -g
+
+$(BIN_DIR)/openwrt-motorola-jffs2-4MB.bin: $(BIN_DIR)/openwrt-generic-jffs2-4MB.trx
+ PATH=$(TARGET_PATH) motorola-bin $< $@
+
+$(BIN_DIR)/openwrt-motorola-jffs2-8MB.bin: $(BIN_DIR)/openwrt-generic-jffs2-8MB.trx
+ PATH=$(TARGET_PATH) motorola-bin $< $@
+