Bill XIE uploaded patch set #4 to this change.

View Change

ifdtool: refactor region_name(s) and new_layout

The feature "--newlayout" is designed to use scheme "right-align"
to copy every regions since its birstday
(change I0e0925a725c40fa44d8c4b6e86552028779d0523), but such
scheme may be only valid for the bios region. For example, it will
cut off the starting chunk of the me region when attempting to shrink
it, according to https://github.com/corna/me_cleaner/issues/58 .

In this commit, I add a member "dir" to "struct region_info" (former
"struct region_name" to record the alignment direction of the region,
and for now, only bios region uses "right-align". (ME region should
use "left-align", according to me_cleaner's practice)

Change-Id: Ia2b92c3f835f9849a243a48c37588c2dbe7449bf
Signed-off-by: Bill XIE <persmule@gmail.com>
---
M util/ifdtool/ifdtool.c
M util/ifdtool/ifdtool.h
2 files changed, 101 insertions(+), 36 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/15/21315/4

To view, visit change 21315. To unsubscribe, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia2b92c3f835f9849a243a48c37588c2dbe7449bf
Gerrit-Change-Number: 21315
Gerrit-PatchSet: 4
Gerrit-Owner: Bill XIE <persmule@gmail.com>
Gerrit-Reviewer: Bill XIE <persmule@gmail.com>
Gerrit-Reviewer: Nicola Corna <nicola@corna.info>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>