util/amdfwtool: Refactor APOB_NV requirements
commit48dd9fe21fb0ad8a27e8a76e65c014c48a667258
authorMartin Roth <martinroth@chromium.org>
Wed, 29 Jul 2020 22:32:25 +0000 (29 16:32 -0600)
committerAaron Durbin <adurbin@chromium.org>
Fri, 21 Aug 2020 18:46:58 +0000 (21 18:46 +0000)
treee0d2a2f36d30e25cba28eb793b11f2f56d5d9fcb
parentdff9994b96fd61253f83edb568e7ced21e1bd24e
util/amdfwtool: Refactor APOB_NV requirements

amdfwtool currently assumes that we MUST have an apob_nv area if we
have an aopb.  This is not required, so if neither the apob_nv size or
base are specified, just move on.

BUG=b:158363448
TEST=Build an image with no APOB_NV region.  Dump regions to show that
it's not there.

Signed-off-by: Martin Roth <martinroth@chromium.org>
Change-Id: Ibaeacd3dcdfd73f690df61c2a19d39bbb9dcc838
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44045
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
util/amdfwtool/amdfwtool.c