cbfstool: don't rewrite param.baseaddress in cbfs_add

Hardware / Coreboot - Patrick Georgi [chromium.org] - 21 January 2016 11:47 UTC

cbfs_add calculated a base address out of the alignment specification and stored it in param.baseaddress. This worked when every cbfstool invocation only added a single file, but with -r REGION1,REGION2,... multiple additions can happen. In that case, the second (and later) additions would have both alignment and baseaddress set, which isn't allowed, aborting the process.

Change-Id: I8c5a512dbe3c97e08c5bcd92b5541b58f65c63b3

9a17d04 cbfstool: don't rewrite param.baseaddress in cbfs_add
util/cbfstool/cbfstool.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Upstream: review.coreboot.org


  • Share