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 <mikael.olsson@arm.com>
1 file changed
tree: 06eefbb2276626307962b4ed5389374dd40cb109
  1. .clang-format
  2. .gitignore
  3. CMakeLists.txt
  4. LICENSE.txt
  5. README.md
  6. SECURITY.md
  7. applications/
  8. cmsis.cmake
  9. event_recorder.cmake
  10. lib/
  11. openamp/
  12. rtos/
  13. tflite_micro.cmake
README.md

Arm(R) Ethos(TM)-U core software

Building

The Arm(R) Ethos(TM)-U core software is built with CMake. It is recommended to build out of tree like illustrated below.

$ cmake -B build -DCMAKE_TOOLCHAIN_FILE=<core_platform_path>/cmake/toolchain/<toolchain_file> -DTARGET_CPU=cortex-m<nr><features>
$ cmake --build build -j8

Available build options can be listed with cmake -LH ...

Supported CPU targets are any of the Cortex(R)-M processors with any of the supported features, for example cortex-m33+nodsp+nofp. A toolchain file is required to cross compile the software.

Contributions

The Arm Ethos-U project welcomes contributions under the Apache-2.0 license.

Before we can accept your contribution, you need to certify its origin and give us your permission. For this process we use the Developer Certificate of Origin (DCO) V1.1 (https://developercertificate.org).

To indicate that you agree to the terms of the DCO, you "sign off" your contribution by adding a line with your name and e-mail address to every git commit message. You must use your real name, no pseudonyms or anonymous contributions are accepted. If there are more than one contributor, everyone adds their name and e-mail to the commit message.

Author: John Doe \<john.doe@example.org\>
Date:   Mon Feb 29 12:12:12 2016 +0000

Title of the commit

Short description of the change.

Signed-off-by: John Doe john.doe@example.org
Signed-off-by: Foo Bar foo.bar@example.org

The contributions will be code reviewed by Arm before they can be accepted into the repository.

In order to submit a contribution push your patch to ssh://<GITHUB_USER_ID>@review.mlplatform.org:29418/ml/ethos-u/ethos-u-core-software. To do this you will need to sign-in to review.mlplatform.org using a GitHub account and add your SSH key under your settings. If there is a problem adding the SSH key make sure there is a valid email address in the Email Addresses field.

Security

Please see Security.

License

The Arm Ethos-U core software is provided under an Apache-2.0 license. Please see LICENSE.txt for more information.

Trademark notice

Arm, Cortex and Ethos are registered trademarks of Arm Limited (or its subsidiaries) in the US and/or elsewhere.