util/spd_tools: Add support for exclusive IDs
commita6425f170c858a75a24ec9c522a85876eb9daa43
authorRobert Zieba <robertzieba@google.com>
Thu, 17 Mar 2022 19:14:12 +0000 (17 13:14 -0600)
committerKarthik Ramasubramanian <kramasub@google.com>
Tue, 22 Mar 2022 16:17:06 +0000 (22 16:17 +0000)
treec1e82b281aceb010c913bdd5ab96e67ad48d505c
parent5d3b1bbce4b3aefaee66e1d96be058397a9d7840
util/spd_tools: Add support for exclusive IDs

Currently memory parts that use the same SPD are assigned the same ID by
spd_tools. This commit adds support for exclusive IDs. When given an
exclusive ID a memory part will not share its ID with other parts unless
they also have the same exclusive ID.

BUG=b:225161910
TEST=Ran part_id_gen and checked that exclusive IDs work correctly and
that the current behavior still works in their abscence.

Signed-off-by: Robert Zieba <robertzieba@google.com>
Change-Id: Ife5afe32337f69bc06451ce16238c7a83bc983c8
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62905
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
util/spd_tools/README.md
util/spd_tools/src/part_id_gen/part_id_gen.go