编译内核的Andr​​oid [英] Compiling android Kernel

查看:105
本文介绍了编译内核的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在编译内核的Andr​​oid在仿真器上安装模块的阶段。但我坚持可怕错误。这里是我如何编译code:

I have been in phase of compiling android kernel to install module on emulator. But i am stuck with horrible error. Here 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-----

任何人都可以建议我的解决方案吗?这将是非常美联社preciated。

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

推荐答案

您好我遇到了同样的问题。
然后我找到了解决方案,这对于你也许有点帮助。
你只需要搭配chmod -R A + X Android上的整个项目。

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.

所以我想根本原因可能:在Android项目中一些二进制没有得到执行

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

这篇关于编译内核的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆