Embedded Linux Encounters

A peek in to the world of Embedded Linux and stuff

  • Linux is addictive, I'm hooked!

         Geek@WastingTime>

Android Toolchain for PXA27x

Posted by Vaisakh P S On 11:52 PM 0 comments

Hi All,


If you guys might want to build a custom toolchain for Android... You can get the build system for that from this manifest : http://android.git.kernel.org/?p=toolchain/manifest.git;a=summary. Initialize repo using this manifest file and download the tool chain build system.

Here is the patch that I did for the build script for making a toolchain for PXA270

embeddedhost@embeddedhost-desktop:~/elworkspace/build/frameworks/android-toolchain/build$ git diff
diff --git a/Makefile.in b/Makefile.in
index 2c905de..80c0fbe 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -187,8 +187,8 @@ GCC_CONFIG_ARGS += $(GCC_CONFIG_LIBSTDCXX_V3) --disable-libssp \
CFLAGS_FOR_TARGET += -DTARGET_POSIX_IO -fno-short-enums
# ARM specific options.
ifeq ($(target_cpu),arm)
-GCC_CONFIG_ARGS += --with-float=soft --with-fpu=vfp --with-arch=armv5te \
- --enable-target-optspace
+GCC_CONFIG_ARGS += --with-float=soft --with-arch=armv5te --with-tune=iwmmxt --without-fp\
+ --enable-target-optspace --enable-interwork --enable-cxx-flags=-msoft-float
ifneq ($(target_os),linux-androideabi)
GCC_CONFIG_ARGS += --with-abi=aapcs
endif

And the command line for configuring the build

./configure --prefix=/home/embeddedhost/elworkspace/build/frameworks/android/prebuilt/linux-x86/toolchain/arm-armv5te-aapcs_abi-4.4.0/ --target=arm-eabi --with-binutils-version=2.19 --with-gcc-version=4.4.0 --enable-shared --with-sysroot=/home/embeddedhost/elworkspace/build/fs/buildroot/output/staging

By default android builds with armv4t, I used the following variables in my vendor specifications to change the build to Armv5 and use the new tool chain:
TARGET_CPU_ABI := armeabi
TARGET_ARCH_VARIANT := armv5te
TARGET_ARCH_VERSION := armv5te
TARGET_TOOLS_PREFIX := prebuilt/$(HOST_PREBUILT_TAG)/toolchain/arm-armv5te-aapcs_abi-4.4.0/bin/arm-eabi-


Categories: , ,

0 Response for the "Android Toolchain for PXA27x"

Post a Comment