From 29063fbd7d410f5c6b863590a87131caf7732c49 Mon Sep 17 00:00:00 2001 From: Zheng Bao Date: Wed, 25 Jan 2023 22:46:57 +0800 Subject: [PATCH] amdfwtool: Parse the line with SOC_NAME We need to put soc name to fw.cfg for future combo feature. We skip for now when SOC_NAME is found. 1/5 of split changes https://review.coreboot.org/c/coreboot/+/58552/28 Change-Id: I2b8d7154d22db13675ff57b6abe61c747604c524 Signed-off-by: Zheng Bao Reviewed-on: https://review.coreboot.org/c/coreboot/+/72456 Tested-by: build bot (Jenkins) Reviewed-by: Fred Reitberger --- util/amdfwtool/data_parse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/amdfwtool/data_parse.c b/util/amdfwtool/data_parse.c index f30196a51f..f82947531d 100644 --- a/util/amdfwtool/data_parse.c +++ b/util/amdfwtool/data_parse.c @@ -697,7 +697,8 @@ uint8_t process_config(FILE *config, amd_cb_config *cb_config, uint8_t print_dep if (skip_comment_blank_line(oneline)) continue; if (is_valid_entry(oneline, match)) { - if (strcmp(&(oneline[match[1].rm_so]), "FIRMWARE_LOCATION") == 0) { + if (strcmp(&(oneline[match[1].rm_so]), "FIRMWARE_LOCATION") == 0 || + strcmp(&(oneline[match[1].rm_so]), "SOC_NAME") == 0) { continue; } else { if (process_one_line(oneline, match, dir, print_deps,