Skip to content

Commit 838453f

Browse files
committed
QA fixes for "Building with CMake" page (#941)
Summary: Pull Request resolved: #941 A few fixes: - Change ff to pte - Add 'adb push' step - Links to selective link, demo apps and embedded demos. Reviewed By: dbort Differential Revision: D50313435 fbshipit-source-id: 1a80df965e8c9737ea97e093c1fb6b6656f87bee
1 parent ac08567 commit 838453f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

docs/source/runtime-build-and-cross-compilation.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,13 @@ cmake --build cmake-android-out -j9
133133

134134
# push the binary to an Android device
135135
adb push cmake-android-out/executor_runner /data/local/tmp/executorch
136+
# push the model file
137+
adb push add.pte /data/local/tmp/executorch
136138

137-
adb shell "/data/local/tmp/executorch/executor_runner --model_path /data/local/tmp/executorch/add.ff"
139+
adb shell "/data/local/tmp/executorch/executor_runner --model_path /data/local/tmp/executorch/add.pte"
138140
```
139141

140-
### IOS
142+
### iOS
141143
```{note}
142144
While we're working on making it a smoother experience, here is an early workflow to try out cross compilation for iOS.
143145
```
@@ -184,3 +186,12 @@ If using the iOS cmake tool chain from `https://github.com/leetal/ios-cmake.git`
184186
- Set the value **Header Search Paths** to `cmake-ios-out/include`.
185187
- Set **Library Search Paths** to `cmake-ios-out/build`.
186188
- In **other linker flags**, add a custom linker flag `-all_load.`
189+
190+
191+
## Next steps
192+
193+
You have successfully cross-compiled `executor_runner` binary to iOS and Android platforms. You can start exploring advanced features and capabilities. Here is a list of sections you might want to read next:
194+
195+
* [Selective build](./kernel-library-selective_build) to build the runtime that links to only kernels used by the program, which can provide significant binary size savings.
196+
* Tutorials on building [Android](./demo-apps-android.md) and [iOS](./demo-apps-ios.md) demo apps.
197+
* Tutorials on deploying applications to embedded devices such as [ARM Cortex-M/Ethos-U](./executorch-arm-delegate-tutorial.md) and [XTensa HiFi DSP](./build-run-xtensa.md).

0 commit comments

Comments
 (0)