espressif: group boards using target name as a family

`hw\bsp` separate one family folder to esp32s2, esp32s3
add board specific board.cmake file to override board specific options(features)
fix examples and test scripts to use new family approach
This commit is contained in:
Alex Lisitsyn
2021-04-16 13:37:14 +02:00
parent 2f0cb8b5f1
commit f5e02e72ed
49 changed files with 618 additions and 154 deletions

View File

@@ -35,7 +35,10 @@ all_examples.sort()
# Build all boards if not specified
all_boards = []
for entry in os.scandir("hw/bsp/esp32sx/boards"):
for entry in os.scandir("hw/bsp/esp32s2/boards"):
if entry.is_dir():
all_boards.append(entry.name)
for entry in os.scandir("hw/bsp/esp32s3/boards"):
if entry.is_dir():
all_boards.append(entry.name)
filter_with_input(all_boards)

View File

@@ -38,7 +38,7 @@ all_examples.sort()
# If family are not specified in arguments, build all
all_families = []
for entry in os.scandir("hw/bsp"):
if entry.is_dir() and os.path.isdir(entry.path + "/boards") and entry.name != "esp32sx":
if entry.is_dir() and os.path.isdir(entry.path + "/boards") and entry.name != "esp32s2" and entry.name != "esp32s3":
all_families.append(entry.name)
filter_with_input(all_families)