Skip to content

Commit

Permalink
build-android.sh: Android build script, using NDK standalone toolchain.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Sokolovsky committed Nov 26, 2015
1 parent 5179bef commit 3ad4cea
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions unix/build-android.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Requires standalone toolchain (as made by
# make-standalone-toolchain.sh from NDK).
# 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
# under SDK dir ("Invoking the compiler (the easy way)" subsection).

# Change for other architectures or toolchains
export CROSS_COMPILE=arm-linux-androideabi-
make deplibs

# LDFLAGS_ARCH= suppresses map file generation, which
# causes android-ndk-r10e gcc to fault
make MICROPY_STANDALONE=1 MICROPY_PY_JNI=1 LDFLAGS_ARCH= V=1 -B
make MICROPY_STANDALONE=1 MICROPY_PY_JNI=1 LDFLAGS_ARCH= V=1 lib

# Automatically install on device/emulator for testing
adb push micropython /data/local/tmp

0 comments on commit 3ad4cea

Please sign in to comment.