From b28541e70ccacbd5cac039b1b88d8de7c8ab22e7 Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 11 Jan 2013 16:44:26 +0000 Subject: image.mk: use XZ bcj architecture filter if available xz supports using an architecture specific BCJ filter, use that one to save us a couple kB while producing squashfs filesystems (mimics the Linux kernel). Signed-off-by: Florian Fainelli git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35097 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- include/image.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/image.mk b/include/image.mk index 503115ddb..7c45b3946 100644 --- a/include/image.mk +++ b/include/image.mk @@ -50,7 +50,10 @@ ifeq ($(CONFIG_SQUASHFS_LZMA),y) SQUASHFSCOMP := lzma $(LZMA_XZ_OPTIONS) endif ifeq ($(CONFIG_SQUASHFS_XZ),y) - SQUASHFSCOMP := xz $(LZMA_XZ_OPTIONS) + ifneq ($(filter arm x86 powerpc sparc,$(LINUX_KARCH)),) + BCJ_FILTER:=-Xbcj $(LINUX_KARCH) + endif + SQUASHFSCOMP := xz $(LZMA_XZ_OPTIONS) $(BCJ_FILTER) endif JFFS2_BLOCKSIZE ?= 64k 128k -- cgit v1.2.3