util/amdfwtool: Write EFS and AMDFW body in separate files
commitecb4e315318e20fe6b708288f5663e40bf7860ce
authorKarthikeyan Ramasubramanian <kramasub@google.com>
Wed, 2 Nov 2022 22:53:54 +0000 (2 16:53 -0600)
committerMartin L Roth <gaumless@gmail.com>
Sat, 24 Dec 2022 19:09:59 +0000 (24 19:09 +0000)
treeceac956764f75716a6d2b5e42b7ddbe77bba5957
parent7c55aab1997f74f9a82f6a57bd299f819e69b3bd
util/amdfwtool: Write EFS and AMDFW body in separate files

Add support to write EFS and AMDFW body to separate files. This is done
through passing an optional --body-location parameter to the amdfwtool.
If that option is not passed, then EFS will be written in the same file
as the AMDFW body. This will help to keep the minimum data to be
loaded/mapped from CBFS in PSP verstage.

BUG=None
TEST=Build and boot to OS in Skyrim.

Change-Id: I79325c81394cf8a0c663752d094adf6660896127
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70778
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
util/amdfwtool/amdfwtool.c