-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build-android.sh: Android build script, using NDK standalone toolchain.
- Loading branch information
Paul Sokolovsky
committed
Nov 26, 2015
1 parent
5179bef
commit 3ad4cea
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |