diff options
| author | Alex Lisitsyn <[email protected]> | 2021-04-16 13:37:14 +0200 |
|---|---|---|
| committer | Alex Lisitsyn <[email protected]> | 2021-04-16 15:41:42 +0200 |
| commit | f5e02e72ed8e6dae5ce854263fdca86ac7453e3c (patch) | |
| tree | 0364e7fdda32374af84bb989bfb1f961ed0fc878 /tools | |
| parent | 2f0cb8b5f1a944187635a58a748ed08738d324a5 (diff) | |
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
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/build_esp32sx.py | 5 | ||||
| -rw-r--r-- | tools/build_family.py | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tools/build_esp32sx.py b/tools/build_esp32sx.py index 82352c269..91953f080 100644 --- a/tools/build_esp32sx.py +++ b/tools/build_esp32sx.py @@ -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) diff --git a/tools/build_family.py b/tools/build_family.py index 35a61f97a..c46781904 100644 --- a/tools/build_family.py +++ b/tools/build_family.py @@ -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) |
