android高通编译,Android 高通代码编译指南

文章转载地址:https://www.codeaurora.org/xwiki/bin/QAEP/

Detailed Build Instructions

Make sure that the environment has been completely and correctly as described by the Android Open Source Project

Once the environment has been configured build Android as follows

$ cd

$ source build/envsetup.sh

The envsetup.sh script is responsible for setting Bash environment variables required by the Android build system.

Now use choosecombo to set the desired build by specifying Build, Type, Product and Variant.

$ choosecombo

Choosecombo is interactive or it can take arguments on the commandline

$ choosecombo 1 1 msm7201a_surf eng

Start the build

$ make -j4

By default, the build system uses the tip of kernel source from /kernel directory, including any modifications you've made.

If you want to compile the kernel with a specific configuration file other than the one defined in vendor/qcom//AndroidBoard.mk (e.g. msm7201a_defconfig) pass the KERNEL_DEFCONFIG flag on the Make command line.

$ make -j4 KERNEL_DEFCONFIG=your_defconfig

The kernel objects, vmlinux and zImage will be at /out/target/product/msm7201a_surf/obj/KERNEL_OBJ and its subdirectories.

You can override the TARGET_PREBUILT_KERNEL flag with your own kernel image to build android with your kernel, as follows:

$ make -j4 TARGET_PREBUILT_KERNEL="/arch/arm/boot/zImage"

You can also build ''tiny android'' which is an Android build with a limited user-space environment useful for kernel development and verification. The ''tiny android'' build will not boot into the full UI. It will stay at one of the loading screens. ADB will be active, allowing you to run unit tests, etc. The build time for ''tiny android'' is significantly less than a full Android build.

$ BUILD_TINY_ANDROID=true make -j4

You can also tell the build system to echo to stdout the full commands and parameters that it would use in building each file without actually building the file. This is useful to see all the compiler options provided

$ make --just-print

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值