New issue
Advanced search Search tips

Issue 782969 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Closed: Dec 2017
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Select kernel compression with use flags

Project Member Reported by lndmrk@chromium.org, Nov 8 2017

Issue description

Currently, the compression is selected based on the kernel architecture. All ARM64 kernels uses LZ4 while all others uses no compression. Note that this doesn't apply to self decompressing kernels.

We should change this so that the compression is selected based on a use flag instead.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Dec 7 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/6530313f5732691f8355423efce3e3b3964081e8

commit 6530313f5732691f8355423efce3e3b3964081e8
Author: Emil Lundmark <lndmrk@chromium.org>
Date: Thu Dec 07 16:04:54 2017

cros-kernel2: select kernel FIT compression with use flags

This is useful especially during board bring-up since all
bootloaders/firmwares may not have decompression support from the get
go.

This currently only affects ARM64 kernels since they are the only ones
using external compression.

BUG= chromium:782969 
TEST=Emerged an ARM64 kernel with different use flags and then verified
that the corresponding compression was used inside the FIT image. Also
verified that LZ4 was used by default.

Change-Id: I58adb14f070aa1c4b391510eba941a5a875739e0
Reviewed-on: https://chromium-review.googlesource.com/741962
Commit-Ready: Emil Lundmark <lndmrk@chromium.org>
Tested-by: Emil Lundmark <lndmrk@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>

[modify] https://crrev.com/6530313f5732691f8355423efce3e3b3964081e8/eclass/cros-kernel2.eclass

Comment 2 by lndmrk@chromium.org, Dec 14 2017

Status: Fixed (was: Started)
Status: Archived (was: Fixed)

Sign in to add a comment