# This specifies optimization level used during compilation. # Please notice that -march flag comes from TARGET_ARCH_VARIANTĭEVICECFLAGS="-march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp" # Device CFLAGS, these should be taken from TARGET_GLOBAL_CFLAGS property of BoardCommonConfig.mk of your device, eventually leave them empty for generic non-device-optimized build # In general it's strongly suggested to leave it turned on, but if you're using makefiles, which already specify optimization level and everything else, then of course you may want to turn it off # This flag turns on ADVANCED section below, you should use "0" if you want easy compiling for generic targets, or "1" if you want to get best optimized results for specific targets # Optional, may help NDK in some cases, should be equal to GCC version of the toolchain specified above Make sure it contains $NDKTC/bin directory with $CROSS_COMPILE binaries # Root of NDK toolchain, the one used in -install-dir from $NDK/build/tools/make-standalone-toolchain.sh. # Root of NDK, the one which contains $NDK/ndk-build binary įirstly you should make sure that you have all required compile tools already. I also suggest to compile one or two programs from source for your Linux, but if you're brave enough to learn cross-compiling without doing any of these, you can skip those suggestions. This will help you to get familiar with cross-compiling on Android. In general, I highly suggest to compile an AOSP ROM (such as CyanogenMod) for your device firstly. You should start from installing any Linux-based OS, I highly suggest trying a Debian-based distro (such as Ubuntu), or even Debian itself, as this tutorial is based on it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |