aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Imes <connor.k.imes@gmail.com>2023-05-23 11:24:53 -0400
committerConnor Imes <connor.k.imes@gmail.com>2023-05-23 11:24:53 -0400
commitf31b1c795c8bc6c5a88bc2ebef3bae1ac58fb349 (patch)
tree24e7d2d26840ed11f12abdebb6f0edb9d7e7e538
parentad3efb973eda6f48dee00c0c6c48e77c98909ed0 (diff)
README: add basic cross compilation documentationHEADmasterdragonboardandroid
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 86a5443..6da6e39 100644
--- a/README.md
+++ b/README.md
@@ -169,6 +169,17 @@ To uninstall, run with proper privileges:
make uninstall
```
+### Cross Compiling
+
+To cross-compile for different systems/architectures, use standard CMake toolchain files.
+See [Mastering CMake](https://cmake.org/cmake/help/book/mastering-cmake/) for reference.
+
+For example, modify the cmake command from the build directory to use your own `toolchain.cmake` file:
+
+``` sh
+cmake -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain.cmake ..
+```
+
## Project Source