diff options
author | Connor Imes <connor.k.imes@gmail.com> | 2023-05-23 11:24:53 -0400 |
---|---|---|
committer | Connor Imes <connor.k.imes@gmail.com> | 2023-05-23 11:24:53 -0400 |
commit | f31b1c795c8bc6c5a88bc2ebef3bae1ac58fb349 (patch) | |
tree | 24e7d2d26840ed11f12abdebb6f0edb9d7e7e538 | |
parent | ad3efb973eda6f48dee00c0c6c48e77c98909ed0 (diff) |
README: add basic cross compilation documentationHEADmasterdragonboardandroid
-rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |