Changeset 35097


Ignore:
Timestamp:
2013-01-11T17:44:26+01:00 (5 years ago)
Author:
florian
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/image.mk

    r34498 r35097  
    5151endif 
    5252ifeq ($(CONFIG_SQUASHFS_XZ),y) 
    53   SQUASHFSCOMP := xz $(LZMA_XZ_OPTIONS) 
     53  ifneq ($(filter arm x86 powerpc sparc,$(LINUX_KARCH)),) 
     54    BCJ_FILTER:=-Xbcj $(LINUX_KARCH) 
     55  endif 
     56  SQUASHFSCOMP := xz $(LZMA_XZ_OPTIONS) $(BCJ_FILTER) 
    5457endif 
    5558 
Note: See TracChangeset for help on using the changeset viewer.