Skip to content

Commit

Permalink
openamp/libmetal: use config OPENAMP_CACHE to control lib metal cache…
Browse files Browse the repository at this point in the history
… too

metal cache is a new config to control weather to use the cache API.

Signed-off-by: Bowen Wang <[email protected]>
  • Loading branch information
CV-Bowen authored and xiaoxiang781216 committed Oct 13, 2024
1 parent 8b0e5ee commit a953f14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openamp/libmetal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ set(MACHINE ${CONFIG_ARCH})
set(CMAKE_SYSTEM_NAME NuttX)
set(WITH_DOC OFF)

if(CONFIG_OPENAMP_CACHE)
add_compile_definitions(METAL_CACHE)
endif()

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libmetal
${CMAKE_CURRENT_BINARY_DIR}/libmetal EXCLUDE_FROM_ALL)

Expand Down
4 changes: 4 additions & 0 deletions openamp/libmetal.defs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ CSRCS += libmetal/lib/log.c
CSRCS += libmetal/lib/shmem.c
CSRCS += libmetal/lib/version.c

ifeq ($(CONFIG_OPENAMP_CACHE),y)
CFLAGS += -DMETAL_CACHE
endif

CFLAGS += -DMETAL_INTERNAL

LIBMETAL_HDRS_SEDEXP := \
Expand Down

0 comments on commit a953f14

Please sign in to comment.