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>
This commit is contained in:
Zheng Bao 2023-01-25 22:46:57 +08:00 committed by Fred Reitberger
parent 3d7623ffc9
commit 29063fbd7d
1 changed files with 2 additions and 1 deletions

View File

@ -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,