开发者

Compiling android Kernel

开发者 https://www.devze.com 2023-02-14 16:01 出处:网络
I have been in phase of compiling android kernel to install module on emulator. But i am stuck with horrible error. He开发者_如何学运维re is how I am compiling the code:

I have been in phase of compiling android kernel to install module on emulator. But i am stuck with horrible error. He开发者_如何学运维re is how I am compiling the code:

>> PATH=$PATH:/home/user/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-

>> make CROSS_COMPILE=arm-eabi- ARCH=arm

============================================

PLATFORM_VERSION_CODENAME=AOSP

PLATFORM_VERSION=AOSP

TARGET_PRODUCT=full

TARGET_BUILD_VARIANT=eng

TARGET_SIMULATOR=

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv5te

HOST_ARCH=x86

HOST_OS=linux

HOST_BUILD_TYPE=release

BUILD_ID=OPENMASTER

============================================

- - - - - 

prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc -mthumb-interwork -Ibionic/libc/private -Ibionic/libc/private -o out/target/product/generic/obj/lib/crtbegin_dynamic.o -c bionic/libc/arch-arm/bionic/crtbegin_dynamic.S

Assembler messages:

Fatal error: Invalid -march= option: `armv5te'

make: *** [out/target/product/generic/obj/lib/crtbegin_dynamic.o] Error 1

----end-----

Can anyone suggest me the solution? It would be really appreciated.


Hi I met the same problem. Then I found the solution which maybe a little helpful for you. You just need to chmod -R a+x android the whole project.

So I guess the root cause maybe : some binary in android project didn't get executed.


You need to compile a cross-compiling toolchain that supports the armv5te target architecture.

0

精彩评论

暂无评论...
验证码 换一张
取 消