diff options
author | Florian Fainelli <florian@openwrt.org> | 2013-01-11 16:44:26 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2013-01-11 16:44:26 +0000 |
commit | ce5dd3b9e2a0c92251490eb290ca0b07e25575fd (patch) | |
tree | 043466f6cdbb3cc5336d104d8a728640e4309f8c /include/image.mk | |
parent | 27828be83a4c3ad3182fd30120a1513763154db2 (diff) | |
download | mtk-20170518-ce5dd3b9e2a0c92251490eb290ca0b07e25575fd.zip mtk-20170518-ce5dd3b9e2a0c92251490eb290ca0b07e25575fd.tar.gz mtk-20170518-ce5dd3b9e2a0c92251490eb290ca0b07e25575fd.tar.bz2 |
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 <florian@openwrt.org>
SVN-Revision: 35097
Diffstat (limited to 'include/image.mk')
-rw-r--r-- | include/image.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk index 503115d..7c45b39 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 |