mirror of https://github.com/hak5/openwrt-owl.git
add additional compressors and try all of them when making jffs2 images (decreases default image size by ~70k)
SVN-Revision: 636owl
parent
2d609c7bea
commit
dd4721f402
|
@ -3,6 +3,8 @@ include $(TOPDIR)/rules.mk
|
||||||
include ./jffs2root.mk
|
include ./jffs2root.mk
|
||||||
|
|
||||||
TARGETS:= $(BIN_DIR)/openwrt-generic-jffs2-4MB.trx $(BIN_DIR)/openwrt-generic-jffs2-8MB.trx
|
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
|
prepare: $(MTD_DIR)/.unpacked
|
||||||
compile: mtd
|
compile: mtd
|
||||||
|
@ -10,14 +12,12 @@ install: compile $(TARGETS)
|
||||||
clean: jffs2root-dirclean
|
clean: jffs2root-dirclean
|
||||||
|
|
||||||
$(BIN_DIR)/openwrt-generic-jffs2-4MB.trx:
|
$(BIN_DIR)/openwrt-generic-jffs2-4MB.trx:
|
||||||
$(MKFS_JFFS2) --pad --little-endian --squash -e 0x10000 \
|
$(MKFS_JFFS2) $(JFFS2OPTS) -e 0x10000 -o $(IMAGE)-4MB.jffs2
|
||||||
-d $(TARGET_DIR) -o $(IMAGE)-4MB.jffs2
|
|
||||||
PATH=$(TARGET_PATH) trx -o $@ $(BUILD_DIR)/loader.gz \
|
PATH=$(TARGET_PATH) trx -o $@ $(BUILD_DIR)/loader.gz \
|
||||||
$(LINUX_IMAGE) -a 0x10000 $(IMAGE)-4MB.jffs2
|
$(LINUX_IMAGE) -a 0x10000 $(IMAGE)-4MB.jffs2
|
||||||
|
|
||||||
$(BIN_DIR)/openwrt-generic-jffs2-8MB.trx:
|
$(BIN_DIR)/openwrt-generic-jffs2-8MB.trx:
|
||||||
$(MKFS_JFFS2) --pad --little-endian --squash -e 0x20000 \
|
$(MKFS_JFFS2) $(JFFS2OPTS) -e 0x20000 -o $(IMAGE)-8MB.jffs2
|
||||||
-d $(TARGET_DIR) -o $(IMAGE)-8MB.jffs2
|
|
||||||
PATH=$(TARGET_PATH) trx -o $@ $(BUILD_DIR)/loader.gz \
|
PATH=$(TARGET_PATH) trx -o $@ $(BUILD_DIR)/loader.gz \
|
||||||
$(LINUX_IMAGE) -a 0x20000 $(IMAGE)-8MB.jffs2
|
$(LINUX_IMAGE) -a 0x20000 $(IMAGE)-8MB.jffs2
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue