• Wu Zhangjin's avatar
    MIPS: Add support for GZIP / BZIP2 / LZMA compressed kernel images · 1b93b3c3
    Wu Zhangjin authored
    This patch helps to generate smaller kernel images for linux-MIPS,
    Here is the effect when using lzma:
    $ ls -sh vmlinux
    7.1M vmlinux
    $ ls -sh vmlinuz
    1.5M vmlinuz
    Have tested the 32bit kernel on Qemu/Malta and 64bit kernel on FuLoong
    Mini PC. both of them work well. and also, tested by Alexander Clouter
    on an AR7 based Linksys WAG54Gv2, and by Manuel Lauss on an Alchemy
    This -v2 version incorporate the feedback from Ralf, and add the
    following changes:
    1. add .ecoff, .bin, .erec format support
    2. only enable it and the debug source code for the machines we tested
    3. a dozen of fixups and cleanups
    and if you want to enable it for your board, please try to select
    SYS_SUPPORTS_ZBOOT for it, and if the board have an 16550 compatible
    uart, you can select SYS_SUPPORTS_ZBOOT_UART16550 directly. and then
    sending the relative patches to Ralf.
    Tested-by: default avatarManuel Lauss <manuel.lauss@googlemail.com>
    Tested-by: default avatarAlexander Clouter <alex@digriz.org.uk>
    Signed-off-by: default avatarWu Zhangjin <wuzhangjin@gmail.com>
    Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Kconfig 51.3 KB