Skip to content

Commit

Permalink
asf: sam: include: use new Kconfig options for SAMx7x
Browse files Browse the repository at this point in the history
Use the Kconfig symbols directly for determing SoC include directory
for the Atmel SAM E70 and SAM V71 product series. These SoCs are part
of a larger product family (SAM E70/S70/V70/V71) and share a common
set of peripherals, and these series are now combined under one common
CONFIG_SOC_SERIES in Zephyr.

Signed-off-by: Henrik Brix Andersen <[email protected]>
  • Loading branch information
henrikbrixandersen authored and nandojve committed Jan 14, 2025
1 parent d37df06 commit dde7a36
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions asf/sam/include/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
if(CONFIG_SOC_ATMEL_SAME70_REVB OR
CONFIG_SOC_ATMEL_SAMV71_REVB)
zephyr_include_directories(${CONFIG_SOC_SERIES}b)
if(CONFIG_SOC_SERIES_SAMX7X)
if(CONFIG_SOC_ATMEL_SAME70)
set(series "same70")
elseif(CONFIG_SOC_ATMEL_SAME70_REVB)
set(series "same70b")
elseif(CONFIG_SOC_ATMEL_SAMV71)
set(series "samv71")
elseif(CONFIG_SOC_ATMEL_SAMV71_REVB)
set(series "samv71b")
endif()
else()
zephyr_include_directories(${CONFIG_SOC_SERIES})
set(series ${CONFIG_SOC_SERIES})
endif()

if(series)
zephyr_include_directories(${series})
unset(series)
else()
message(FATAL_ERROR "unsupported SoC series")
endif()

0 comments on commit dde7a36

Please sign in to comment.