commit | b64628f0aa412ae962e0398bf8c85271f19fb117 | [log] [tgz] |
---|---|---|
author | Jonny Svärd <jonny.svaerd@arm.com> | Tue Jun 02 15:24:54 2020 +0200 |
committer | Jonny Svärd <jonny.svaerd@arm.com> | Tue Jun 02 16:08:43 2020 +0200 |
tree | 490f2eec76cf9daa02a5c92cf26aa0c7fa23857b | |
parent | 341a0dfea1fe2a186a1c9130425a20e28e811568 [diff] |
Rework AXI patch to not depend on CMake Make ethosu_config.h define default macro's (with default values) unless the user overrides them. For CMake users, the macros can be defined on cmd line by specifying CMAKE_C_FLAGS for cmake, like: cmake ... -DCMAKE_C_FLAGS='-DFOO=1 -DBAR=2' Change-Id: I20fd3e07fdcfb7cba58da7198fd986f8821902bb
This repository contains a device driver for the Ethos-u NPU.
The source code comes with a CMake based build system. The driver is expeced to be cross compiled for any of the supported Arm Cortex-m CPUs, which will require the user to setup a custom toolchain file.
The user is also required to define CMAKE_SYSTEM_PROCESSOR
for the target CPU, for example cortex-m55+nodsp+nofp. This can be done either in the toolchain file or on the command line.
$ mkdir build $ cd build $ cmake .. -DCMAKE_TOOLCHAIN_FILE=<toolchain> -DCMAKE_SYSTEM_PROCESSOR=cortex-m<nr><features> $ make