aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Olsson <mikael.olsson@arm.com>2024-04-24 12:50:05 +0200
committerMikael Olsson <mikael.olsson@arm.com>2024-04-24 14:04:58 +0200
commitdef786363c7d550faac6afbc0fe436fd06c059be (patch)
tree06eefbb2276626307962b4ed5389374dd40cb109
parent49f0bdb7388dda406abe2fb6c1a6aa6f7cbd6f64 (diff)
downloadethos-u-core-software-main.tar.gz
Add VIRTIO macros to custom OpenAMP CMake fileHEADmain
The OpenAMP library has been changed to required the build system to define the VIRTIO_DRIVER_SUPPORT and VIRTIO_DEVICE_SUPPORT macros to know what code to include and will fail to build if these macros are not defined. As a custom CMake file is used to build OpenAMP rather than using the one provided by the library, the library currently fails to build because the custom CMake file does not define the required macros. To resolve this, the custom CMake file now defines the missing macros. Change-Id: Iae0d40a7604b6eccead2adb157487ad1c57024a3 Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
-rw-r--r--openamp/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/openamp/CMakeLists.txt b/openamp/CMakeLists.txt
index 07b07d7..c725069 100644
--- a/openamp/CMakeLists.txt
+++ b/openamp/CMakeLists.txt
@@ -1,5 +1,5 @@
#
-# SPDX-FileCopyrightText: Copyright 2022-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
+# SPDX-FileCopyrightText: Copyright 2022-2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the License); you may
@@ -47,6 +47,8 @@ function(build_openamp PROJECT_SYSTEM)
OPENAMP_VERSION_MINOR=0
OPENAMP_VERSION_PATCH=0
OPENAMP_VERSION=0
+ VIRTIO_DRIVER_SUPPORT=1
+ VIRTIO_DEVICE_SUPPORT=1
METAL_INTERNAL)
target_link_libraries(openamp-${PROJECT_SYSTEM} PRIVATE