summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 32211ba)
raw | patch | inline | side by side (parent: 32211ba)
author | Tomi Valkeinen <tomi.valkeinen@iki.fi> | |
Sun, 10 Jul 2016 07:54:43 +0000 (10:54 +0300) | ||
committer | GitHub <noreply@github.com> | |
Sun, 10 Jul 2016 07:54:43 +0000 (10:54 +0300) |
README.md | patch | blob | history |
diff --git a/README.md b/README.md
index a94de9ca8a308825238ca7f15d27b8840b414a58..374b63b0ed06707f1c121d756f6994ddbb97f028 100644 (file)
--- a/README.md
+++ b/README.md
$ make -j4
```
+Your environment may provide similar toolchainfile. If not, you can create a toolchainfile of your own, something along these lines:
+
+```
+SET(CMAKE_SYSTEM_NAME Linux)
+
+SET(BROOT "<buildroot>/output/")
+
+# specify the cross compiler
+SET(CMAKE_C_COMPILER ${BROOT}/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc)
+SET(CMAKE_CXX_COMPILER ${BROOT}/host/usr/bin/arm-buildroot-linux-gnueabihf-g++)
+
+# where is the target environment
+SET(CMAKE_FIND_ROOT_PATH ${BROOT}/target ${BROOT}/host)
+
+SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
+SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+```
+
## Build options
You can use the following cmake flags to control the build. Use `-DFLAG=VALUE` to set them.