Browse Source

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>
pull/69687/head
Erwan Gouriou 1 year ago committed by Jamie McCrae
parent
commit
3cda715fae
  1. 3
      scripts/utils/board_v1_to_v2.py

3
scripts/utils/board_v1_to_v2.py

@ -103,8 +103,9 @@ def board_v1_to_v2(board_root, board, new_board, group, vendor, soc, variants): @@ -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):

Loading…
Cancel
Save