summaryrefslogtreecommitdiff
path: root/util/spd_tools
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2020-08-31 15:17:38 -0600
committerPatrick Georgi <pgeorgi@google.com>2020-09-09 10:46:03 +0000
commitad1da3a326688edcd9307d961a427da2636e6f44 (patch)
tree2aa693ded2ab172fc6a6aae724d2ad713928a9d0 /util/spd_tools
parenteeb4705fff0a831a79d34e88b48a30248f1cfe9d (diff)
downloadcoreboot-ad1da3a326688edcd9307d961a427da2636e6f44.tar.xz
util/spd_tools: Support comments in mem_parts_used
Allow comments prefixed with '#' in mem_parts_used csv file. BUG=None TEST=Run gen_part_id with mem_parts_used file containing comments Change-Id: Ia9e274d45aa06dea7a3a5f8cd1c8ee2b23398876 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44950 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'util/spd_tools')
-rw-r--r--util/spd_tools/ddr4/gen_part_id.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/spd_tools/ddr4/gen_part_id.go b/util/spd_tools/ddr4/gen_part_id.go
index 29b91fac35..f07e79b45a 100644
--- a/util/spd_tools/ddr4/gen_part_id.go
+++ b/util/spd_tools/ddr4/gen_part_id.go
@@ -68,6 +68,7 @@ func readParts(memPartsUsedFileName string) ([]usedPart, error) {
r := csv.NewReader(f)
r.FieldsPerRecord = -1 // Allow variable length records
r.TrimLeadingSpace = true
+ r.Comment = '#'
parts := []usedPart{}