summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorZheng Bao <fishbaozi@gmail.com>2023-01-25 22:46:57 +0800
committerFred Reitberger <reitbergerfred@gmail.com>2023-02-09 13:45:51 +0000
commit29063fbd7d410f5c6b863590a87131caf7732c49 (patch)
treebb43884fa777f6309a93fa8ea2b551224bbe4e22 /util
parent3d7623ffc93a04c319a6da7fc2fcf3b96b4348ae (diff)
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 <fishbaozi@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/72456 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'util')
-rw-r--r--util/amdfwtool/data_parse.c3
1 files changed, 2 insertions, 1 deletions
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,