From def786363c7d550faac6afbc0fe436fd06c059be Mon Sep 17 00:00:00 2001 From: Mikael Olsson Date: Wed, 24 Apr 2024 12:50:05 +0200 Subject: Add VIRTIO macros to custom OpenAMP CMake file 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 --- openamp/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 +# SPDX-FileCopyrightText: Copyright 2022-2024 Arm Limited and/or its affiliates # 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 -- cgit v1.2.1