From 2b8922d5c2f31f7a71d84a8aa86946cef00589de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonny=20Sv=C3=A4rd?= Date: Thu, 15 Dec 2022 12:40:00 +0100 Subject: Add custom cross compilation documentation Change-Id: I1ab89146bf897c4c35180ab09f08064511f573f8 --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index e8c095b..aa8cf33 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,14 @@ subsystem, consisting of an Arm Cortex-M of choice and an Arm Ethos-U NPU. The driver stack comes with a CMake based build system. A toolchain file is provided for reference how to cross compile for an Aarch64 based system. +Note that if your host system provides cross compilers and libraries of newer +versions than what is supported on your target system, you might be required to +download an older version of compilers and toolchains for your target system. +While out of scope for this README, an example +[toolchain file](cmake/toolchain/aarch64-linux-gnu-custom.cmake) is provided to +show what it could look like. Another option is to run a Docker image of an +appropriate Linux distribution suited to build for your needs. + Building the kernel modules requires a configured Linux kernel source tree. How to download and configure the Linux kernel goes beyond the scope of this readme. Please refer to the Linux kernel official documentation. -- cgit v1.2.1