Attention is currently required from: Edward O'Callaghan, Angel Pons, Daniel Campello, Anastasia Klimchuk, Peter Marheine.

Nico Huber uploaded patch set #3 to this change.

View Change

layout: Introduce flashrom_layout_empty()

It initializes an empty layout. Currently the maximum number of entries
has to be specified, which will vanish once we use dynamic allocation
per entry.

We replace the two special cases `single_layout` and `ich_layout` with
dynamically allocated layouts. As a result, we have to take care to
release the `default_layout` in a flashctx once we are done with it.

Change-Id: I2ae7246493ff592e631cce924777925c7825e398
Signed-off-by: Nico Huber <>
M cli_classic.c
M flash.h
M flashrom.c
M ich_descriptors.c
M ich_descriptors.h
M layout.c
M libflashrom.c
M libflashrom.h
8 files changed, 55 insertions(+), 37 deletions(-)

git pull ssh:// refs/changes/43/33543/3

To view, visit change 33543. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I2ae7246493ff592e631cce924777925c7825e398
Gerrit-Change-Number: 33543
Gerrit-PatchSet: 3
Gerrit-Owner: Nico Huber <>
Gerrit-Reviewer: Anastasia Klimchuk <>
Gerrit-Reviewer: Angel Pons <>
Gerrit-Reviewer: Arthur Heymans <>
Gerrit-Reviewer: Daniel Campello <>
Gerrit-Reviewer: David Hendricks <>
Gerrit-Reviewer: Edward O'Callaghan <>
Gerrit-Reviewer: Nico Huber <>
Gerrit-Reviewer: Peter Marheine <>
Gerrit-Reviewer: Thomas Heijligen <>
Gerrit-Reviewer: build bot (Jenkins) <>
Gerrit-Attention: Edward O'Callaghan <>
Gerrit-Attention: Angel Pons <>
Gerrit-Attention: Daniel Campello <>
Gerrit-Attention: Anastasia Klimchuk <>
Gerrit-Attention: Peter Marheine <>
Gerrit-MessageType: newpatchset