aboutsummaryrefslogtreecommitdiffstats
path: root/target/jffs2
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-04-12 14:52:18 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-04-12 14:52:18 +0000
commitf7ecdf08a95ec29d3315d459a4c744566f3e5b71 (patch)
treef776bba183c05d00160fd616548122a6a23da8e6 /target/jffs2
parent6adac1ffdfab3aa9fb6b3b40d40e8613d335a810 (diff)
downloadupstream-f7ecdf08a95ec29d3315d459a4c744566f3e5b71.tar.gz
upstream-f7ecdf08a95ec29d3315d459a4c744566f3e5b71.tar.bz2
upstream-f7ecdf08a95ec29d3315d459a4c744566f3e5b71.zip
add additional compressors and try all of them when making jffs2 images (decreases default image size by ~70k)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@636 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/jffs2')
-rw-r--r--target/jffs2/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/jffs2/Makefile b/target/jffs2/Makefile
index 01dede7d7a..5f155fd709 100644
--- a/target/jffs2/Makefile
+++ b/target/jffs2/Makefile
@@ -3,6 +3,8 @@ include $(TOPDIR)/rules.mk
include ./jffs2root.mk
TARGETS:= $(BIN_DIR)/openwrt-generic-jffs2-4MB.trx $(BIN_DIR)/openwrt-generic-jffs2-8MB.trx
+JFFS2OPTS := --pad --little-endian --squash -d $(TARGET_DIR)
+JFFS2OPTS += -Xlzo -msize -Xlzari
prepare: $(MTD_DIR)/.unpacked
compile: mtd
@@ -10,14 +12,12 @@ 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
+ $(MKFS_JFFS2) $(JFFS2OPTS) -e 0x10000 -o $(IMAGE)-4MB.jffs2
PATH=$(TARGET_PATH) trx -o $@ $(BUILD_DIR)/loader.gz \
$(LINUX_IMAGE) -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
+ $(MKFS_JFFS2) $(JFFS2OPTS) -e 0x20000 -o $(IMAGE)-8MB.jffs2
PATH=$(TARGET_PATH) trx -o $@ $(BUILD_DIR)/loader.gz \
$(LINUX_IMAGE) -a 0x20000 $(IMAGE)-8MB.jffs2