1if(CONFIG_SOC_SERIES_SAMX7X)
2  if(CONFIG_SOC_ATMEL_SAME70)
3    set(series "same70")
4  elseif(CONFIG_SOC_ATMEL_SAME70_REVB)
5    set(series "same70b")
6  elseif(CONFIG_SOC_ATMEL_SAMV71)
7    set(series "samv71")
8  elseif(CONFIG_SOC_ATMEL_SAMV71_REVB)
9    set(series "samv71b")
10  endif()
11else()
12  set(series ${CONFIG_SOC_SERIES})
13endif()
14
15if(series)
16  zephyr_include_directories(${series})
17  unset(series)
18else()
19  message(FATAL_ERROR "unsupported SoC series")
20endif()
21