Karthik Ramasubramanian has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/63598 )
Change subject: util/apcb/apcb_v3_edit.py: Edit APCB based on different SPD magic ......................................................................
util/apcb/apcb_v3_edit.py: Edit APCB based on different SPD magic
APCB edit tool edits APCBs with LP4 specific SPDs. Introduce an option to support different SPD magic so that the tool can be used to edit APCBs with LP5 specific SPDs.
BUG=None TEST=Build Skyrim board with LP5 specific SPDs. Build Guybrush board with LP4 specific SPDs.
Signed-off-by: Karthikeyan Ramasubramanian kramasub@google.com Change-Id: I8e96c89e4e5ce8e0567a17bf7685b69080fa1708 --- M util/apcb/apcb_v3_edit.py 1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/98/63598/1
diff --git a/util/apcb/apcb_v3_edit.py b/util/apcb/apcb_v3_edit.py index 9a70bac..4d1fcbe 100755 --- a/util/apcb/apcb_v3_edit.py +++ b/util/apcb/apcb_v3_edit.py @@ -47,6 +47,10 @@ '--spd_sources', nargs='+', help='List of SPD sources') + parser.add_argument( + '--spd_magic', + type=str, + help='SPD Magic Identifier as hex byte stream') return parser.parse_args()
@@ -62,6 +66,8 @@
def main(): + global SPD_MAGIC + args = parseargs()
print(f'Reading input APCB from {args.apcb_in}') @@ -75,6 +81,9 @@
print(f'Using SPD Sources = {args.spd_sources}')
+ if args.spd_magic: + SPD_MAGIC = bytes.fromhex(args.spd_magic) + spds = [] for spd_source in args.spd_sources: with open(spd_source, 'rb') as f: