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

@@ -9,10 +9,10 @@ set(TOP "../../..")
get_filename_component(TOP "${TOP}" REALPATH)
# Check for -DFAMILY=
if(FAMILY STREQUAL "esp32sx")
if(FAMILY MATCHES "^(esp32s[2-3])*")
include(${TOP}/hw/bsp/${FAMILY}/family.cmake)
project(${PROJECT})
else()
message(FATAL_ERROR "Invalid FAMILY specified")
message(FATAL_ERROR "Invalid FAMILY specified: ${FAMILY}")
endif()