diff options
author | Alexandros C. Couloumbis <alex@ozo.com> | 2010-04-13 14:07:22 +0000 |
---|---|---|
committer | Alexandros C. Couloumbis <alex@ozo.com> | 2010-04-13 14:07:22 +0000 |
commit | 43ee14563cf3838f8be67d2a486a114ecbea9fd7 (patch) | |
tree | 4874f83f1e5617a023025aff4d2928c7801e22e7 /include/image.mk | |
parent | 0ff59f87b0622a9daae29d0a6f016932d8b1b6bc (diff) | |
download | mtk-20170518-43ee14563cf3838f8be67d2a486a114ecbea9fd7.zip mtk-20170518-43ee14563cf3838f8be67d2a486a114ecbea9fd7.tar.gz mtk-20170518-43ee14563cf3838f8be67d2a486a114ecbea9fd7.tar.bz2 |
finalize lzma/jffs2 support (currently not enebled by default, for kernels >=2.6.33) based on Edgar Soldin patches: https://lists.openwrt.org/pipermail/openwrt-devel/2010-March/006550.html
SVN-Revision: 20837
Diffstat (limited to 'include/image.mk')
-rw-r--r-- | include/image.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk index 98e32b3..f279121 100644 --- a/include/image.mk +++ b/include/image.mk @@ -25,6 +25,11 @@ JFFS2OPTS := --pad --big-endian --squash SQUASHFS_OPTS := -be endif +JFFS2OPTS+= $(if $(CONFIG_KERNEL_JFFS2_RTIME)$(LINUX_2_4),-X,-x) rtime +JFFS2OPTS+= $(if $(CONFIG_KERNEL_JFFS2_ZLIB),-X,-x) zlib +JFFS2OPTS+= $(if $(CONFIG_KERNEL_JFFS2_LZMA)$(LINUX_2_4),-X,-x) lzma +JFFS2OPTS+= $(JFFS2COMPR) --compression-mode=size + ifneq ($(CONFIG_LINUX_2_4)$(CONFIG_LINUX_2_6_25),) USE_SQUASHFS3 := y endif @@ -59,7 +64,7 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y) ifeq ($(CONFIG_TARGET_ROOTFS_JFFS2),y) define Image/mkfs/jffs2/sub # FIXME: removing this line will cause strange behaviour in the foreach loop below - $(STAGING_DIR_HOST)/bin/mkfs.jffs2 $(JFFS2OPTS) -e $(patsubst %k,%KiB,$(1)) -o $(KDIR)/root.jffs2-$(1) -d $(TARGET_DIR) + $(STAGING_DIR_HOST)/bin/mkfs.jffs2 $(JFFS2OPTS) -e $(patsubst %k,%KiB,$(1)) -o $(KDIR)/root.jffs2-$(1) -d $(TARGET_DIR) -v 2>&1 1>/dev/null | awk '/^.+$$$$/' $(call add_jffs2_mark,$(KDIR)/root.jffs2-$(1)) $(call Image/Build,jffs2-$(1)) endef |