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
This commit is contained in:
parent
27828be83a
commit
ce5dd3b9e2
1 changed files with 4 additions and 1 deletions
|
@ -50,7 +50,10 @@ ifeq ($(CONFIG_SQUASHFS_LZMA),y)
|
||||||
SQUASHFSCOMP := lzma $(LZMA_XZ_OPTIONS)
|
SQUASHFSCOMP := lzma $(LZMA_XZ_OPTIONS)
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_SQUASHFS_XZ),y)
|
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
|
endif
|
||||||
|
|
||||||
JFFS2_BLOCKSIZE ?= 64k 128k
|
JFFS2_BLOCKSIZE ?= 64k 128k
|
||||||
|
|
Loading…
Reference in a new issue