summaryrefslogtreecommitdiff
path: root/docs/README.md
diff options
context:
space:
mode:
authorruki <[email protected]>2017-08-03 11:15:46 +0800
committerruki <[email protected]>2017-08-03 11:15:46 +0800
commitbcb21e7b854ee16baf2c0b992ded6b4e7cefb76c (patch)
treef1276b9715ff5e363bfac14bd848f15c761e0367 /docs/README.md
parentb40bc697d9ce4e20836b60941daabfeaae080b28 (diff)
add cross platform and custom platform name
Diffstat (limited to 'docs/README.md')
-rw-r--r--docs/README.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/README.md b/docs/README.md
index 44790f541..b29f8d708 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -293,11 +293,27 @@ $ xmake
##### Cross Compilation
+For linux platform:
+
```bash
$ xmake f -p linux --sdk=/usr/local/arm-linux-gcc/ [--toolchains=/sdk/bin] [--cross=arm-linux-]
$ xmake
```
+Fro other cross platform:
+
+```bash
+$ xmake f -p cross --sdk=/usr/local/arm-xxx-gcc/ [--toolchains=/sdk/bin] [--cross=arm-linux-]
+$ xmake
+```
+
+For custem cross platform (`is_plat("myplat")`):
+
+```bash
+$ xmake f -p myplat --sdk=/usr/local/arm-xxx-gcc/ [--toolchains=/sdk/bin] [--cross=arm-linux-]
+$ xmake
+```
+
| Configuration Option | Description |
| ---------------------------- | -------------------------------------------- |
| [--sdk](#-sdk) | Set the sdk root directory of toolchains |