util/amdfwtool: Clarify APOB NV requirements
commitc4a8c48b2f70d56c7c318f4ce24a467a1d708ef5
authorMarshall Dawson <marshalldawson3rd@gmail.com>
Wed, 22 Jan 2020 00:17:59 +0000 (21 17:17 -0700)
committerMartin Roth <martinroth@google.com>
Mon, 2 Mar 2020 16:35:51 +0000 (2 16:35 +0000)
treedb9e48ba52408333a69cac9a01b4d10d5c66a3c8
parent4062b6a3b18f8e562b813b94509ecebc4415bfa2
util/amdfwtool: Clarify APOB NV requirements

Relocate the first size check.  This was automatically continuing
and not looking for the caller incorrectly passing a destination.

New information indicates that the APOB_NV should always be present
in the system.  Augment the missing size check to inferring whether
a missing size is valid, as in the case of older products, or truly
missing when it's needed.

Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Change-Id: I51f5333de4392dec1478bd84563c053a508b9e9e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38690
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
util/amdfwtool/amdfwtool.c