Browse Source

openamp: enable address translation in CMake

Update CMakeLists.txt to conditionally include address translation
support based on Kconfig options.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
pull/82801/merge
Iuliana Prodan 3 weeks ago committed by Dan Kalowsky
parent
commit
75d887605c
  1. 19
      lib/open-amp/CMakeLists.txt

19
lib/open-amp/CMakeLists.txt

@ -5,13 +5,20 @@ @@ -5,13 +5,20 @@
# SPDX-License-Identifier: Apache-2.0
#
zephyr_include_directories_ifdef(CONFIG_OPENAMP_RSC_TABLE .)
# include vendor-specific resources
if(CONFIG_OPENAMP_VENDOR_RSC_TABLE OR CONFIG_OPENAMP_VENDOR_ADDR_TRANSLATION)
zephyr_include_directories(vendor)
endif()
# include vendor-specific resource table files
if(CONFIG_OPENAMP_VENDOR_RSC_TABLE)
if(CONFIG_OPENAMP_RSC_TABLE)
zephyr_include_directories(.)
# include generic address translation ops
zephyr_sources(addr_translation.c)
# include vendor-specific resource table files
if(CONFIG_OPENAMP_VENDOR_RSC_TABLE)
zephyr_sources(vendor/${CONFIG_OPENAMP_VENDOR_RSC_TABLE_FILE})
zephyr_include_directories(vendor)
elseif(CONFIG_OPENAMP_RSC_TABLE)
# include generic resource table
else()
# include generic resource table
zephyr_sources(resource_table.c)
endif()
endif()

Loading…
Cancel
Save