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:
@@ -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)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user