Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firmware: Enable firmware compression to conserve some disk space #3418

Merged

Commits on Sep 7, 2023

  1. kernel-5.10: Allow handling of compressed firmware

    Firmware binary blobs can add up to quite a lot of disk space usage.
    With Bottlerocket we do aim to keep our images small, so enable the
    kernel's firmware loading infrastructure to handle compressed firmware
    files.
    
    Signed-off-by: Leonard Foerster <foersleo@amazon.com>
    foersleo committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    b4b9cdc View commit details
    Browse the repository at this point in the history
  2. kernel-5.15: Allow handling of compressed firmware

    Firmware binary blobs can add up to quite a lot of disk space usage.
    With Bottlerocket we do aim to keep our images small, so enable the
    kernel's firmware loading infrastructure to handle compressed firmware
    files.
    
    Signed-off-by: Leonard Foerster <foersleo@amazon.com>
    foersleo committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    6a0c438 View commit details
    Browse the repository at this point in the history
  3. kernel-6.1: Allow handling of compressed firmware

    Firmware binary blobs can add up to quite a lot of disk space usage.
    With Bottlerocket we do aim to keep our images small, so enable the
    kernel's firmware loading infrastructure to handle compressed firmware
    files.
    
    Previous to linux kernel series 5.19 option `CONFIG_FW_LOADER_COMPRESS`
    was only supporting the XZ compression algorithm. Since then also ZSTD
    compression is available which makes additional options necessary to
    select the right algorithm. For now select the default XZ compression
    to align all our supported kernels on the same. Once we are only
    supporting kernels >=6.1 we may chose to switch compression algorithm.
    
    Signed-off-by: Leonard Foerster <foersleo@amazon.com>
    foersleo committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    684e7fe View commit details
    Browse the repository at this point in the history
  4. linux-firmware: Enable firmware compression

    Recoup some image size by enabling firmware compression, now that our
    kernels support it.
    
    None of the compressed firmware files has the execute bit set, so we can
    skip removing it when assembling the package.
    
    Signed-off-by: Leonard Foerster <foersleo@amazon.com>
    foersleo committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    2e67d49 View commit details
    Browse the repository at this point in the history