8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf7e6d6 commit 6b6834eCopy full SHA for 6b6834e
unix/build-android.sh
@@ -0,0 +1,16 @@
1
+# Requires standalone toolchain (as made by
2
+# make-standalone-toolchain.sh from NDK).
3
+# See docs/Programmers_Guide/html/md_3__key__topics__building__s_t_a_n_d_a_l_o_n_e-_t_o_o_l_c_h_a_i_n.html
4
+# under SDK dir ("Invoking the compiler (the easy way)" subsection).
5
+
6
+# Change for other architectures or toolchains
7
+export CROSS_COMPILE=arm-linux-androideabi-
8
+make deplibs
9
10
+# LDFLAGS_ARCH= suppresses map file generation, which
11
+# causes android-ndk-r10e gcc to fault
12
+make MICROPY_STANDALONE=1 MICROPY_PY_JNI=1 LDFLAGS_ARCH= V=1 -B
13
+make MICROPY_STANDALONE=1 MICROPY_PY_JNI=1 LDFLAGS_ARCH= V=1 lib
14
15
+# Automatically install on device/emulator for testing
16
+adb push micropython /data/local/tmp
0 commit comments