util/cbfstool: Drop IS_TOP_ALIGNED_ADDRESS() check in cbfstool_convert_fsp
commitc3bb6923bdcd20f4b343ba373a7d211655d6468a
authorFurquan Shaikh <furquan@google.com>
Wed, 10 Jun 2020 04:20:27 +0000 (9 21:20 -0700)
committerFurquan Shaikh <furquan@google.com>
Sat, 13 Jun 2020 06:49:50 +0000 (13 06:49 +0000)
tree4211b364e730090ba3d638eef5912886cd3b3787
parent00a8ed8fcd9f3ebab1b06b9e05f9d52d5a938738
util/cbfstool: Drop IS_TOP_ALIGNED_ADDRESS() check in cbfstool_convert_fsp

This change drops the check for IS_TOP_ALIGNED_ADDRESS() before
setting offset to 0 in cbfstool_convert_fsp(). If the user provides a
baseaddress to relocate the FSP to, then the offset should be set to 0
since there is no requirement on where the file ends up in cbfs. This
allows the user to relocate the FSP to an address in lower DRAM.

BUG=b:155322763

Signed-off-by: Furquan Shaikh <furquan@google.com>
Change-Id: Ibeadbf06881f7659b2ac7d62d2152636c853fb9f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42263
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
util/cbfstool/cbfstool.c