注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

讀萬卷書,行萬里路

开心快乐的方式有很多种,寻找自己的快乐方式

 
 
 

日志

 
 

Kernel building guide for Motorola Cliq  

2011-09-06 21:23:56|  分类: 我的安卓 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

原文出外:

1. https://github.com/adumont/cm4morrison_guide/wiki/Kernel-building-guide-for-Motorola-Cliq

2. http://simply-android.com/discussion/1635/kernel-source-how-to-build-cliqdext-kernel-source/

Initialize your workspace:

mkdir ~/workspace cd ~/workspace 

If you are just building the kernel and not a full ROM, you will need to download the ARM compiler. Which version of the compiler you use depends on the version of Android you're planning on building. This is known to work on eclair (4.2.1) and gingerbread (4.4.3). Replace <android version> with eclair, froyo, gingerbread, etc.

git clone -b <android version>  git://android.git.kernel.org/platform/prebuilt.git prebuilt 

If you are building a full ROM or already have the compiler you want to use, link it in (indicate the right path for your system):

ln -s ~/prebuilt prebuilt 

Clone the Kernel sources ("cmkernel" branch is for CM4morrison kernel):

git clone -b cmkernel git://github.com/adumont/kernel_morrison.git kernel 

Get BCM Wlan Open Source DHD driver sources:

mkdir -p system/wlan/bcm && cd system/wlan/bcm 
git clone -b master git://github.com/adumont/wlan-bcm-osrc.git osrc

Build the kernel:

export PLATFORM_DIR=~/workspace 
export
ARCH=arm
export
CROSS_COMPILE=arm-eabi-
export
PATH=$PLATFORM_DIR/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin:$PATH
cd
$PLATFORM_DIR/kernel

Prepare the config. Use the default (stock) config, or CM4Morrison 's one:

make msm7x01a_mot_defconfig 

or

make cm4morrison_defconfig 

Change the .config to meet your needs, or use:

make menuconfig 

Compile the kernel:

make ANDROID_BUILD_TOP=$PLATFORM_DIR && 
make -C $PLATFORM_DIR/system/wlan/bcm/osrc/open-src/src/dhd/linux ANDROID_BUILD_TOP=$PLATFORM_DIR

You can add "-jN" to any 'make' command to run the build in parallel. Setting N to the number of cores in your system is a good idea. You can also add "V=1" to any kernel build to see the commands being used to build. This is especially useful if you are trying to debug a build.

  评论这张
 
阅读(235)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017