8000 build-android.sh: Android build script, using NDK standalone toolchain. · godlygeek/circuitpython@6b6834e · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b6834e

Browse files
committed
build-android.sh: Android build script, using NDK standalone toolchain.
1 parent bf7e6d6 commit 6b6834e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

unix/build-android.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
0