Commit 7c82d6c2 authored by Iuliana Prodan's avatar Iuliana Prodan Committed by Benjamin Cabé
Browse files

lib: open-amp: Update CMakeLists.txt for vendor resource table



Modify the build system to conditionally compile
vendor-specific resource table support based on configuration.

Signed-off-by: default avatarIuliana Prodan <iuliana.prodan@nxp.com>
parent 9db96e8a
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
#
# Copyright (c) 2020, STMicroelectronics
# Copyright 2025 NXP
#
# SPDX-License-Identifier: Apache-2.0
#

zephyr_include_directories_ifdef(CONFIG_OPENAMP_RSC_TABLE .)
zephyr_sources_ifdef(CONFIG_OPENAMP_RSC_TABLE resource_table.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
  zephyr_sources(resource_table.c)
endif()