scripts: board_v1_to_v2: Don't add select CONFIG_SOC_SERIES_FOO

SOC_SERIES_FOO selection is done at soc/ level it should
not be added as part of board description

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
This commit is contained in:
Erwan Gouriou
2024-01-19 11:26:12 +01:00
committed by Jamie McCrae
parent dc56a543f3
commit 3cda715fae

View File

@@ -103,8 +103,9 @@ def board_v1_to_v2(board_root, board, new_board, group, vendor, soc, variants):
m = re.match(r"^CONFIG_(SOC_[A-Z0-9_]+).*$", line)
if m:
board_soc_settings.append(m.group(1))
dropped_line = True
if re.match(r"(?!SERIES_).*$", str(m)):
board_soc_settings.append(m.group(1))
continue
if dropped_line and re.match(r"^$", line):