木蚂蚁手机乐园首页

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索

【CM9】Building ur own CyanogenMod from sources【Coding】

热度 1已有 608 次阅读2012-12-12 16:40 |个人分类:安卓技术

ENV:Ubuntu 10.04 on VMware Workstation 9.0
PC ENV:Win7
JAVA:JDK1.6u35
1.Something that should be pre-installed(For ubuntu 10.04;for other editions,check http://source.android.com/source/initializing.html
 
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev
sudo apt-get install lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev
sudo apt-get install lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc
 
2.Something about Repo
Download & Installation
 
cd ~
mkdir bin
chmod a+x ~/bin/repo
alias repo="~/bin/repo"
 
# (or do this
# gedit .bashrc
# then add alias repo="~/bin/repo" at the end of the file, then save & close it.
# source .bashrc)
 
3.Download the CM codes
mkdir cm9
cd cm9
repo init -u git://github.com/CyanogenMod/android.git -b ics   #(or jellybean for cm10
#(then u should enter ur name & email in use)
repo sync
#(for sync maybe breaks, use the following shell script)
********************************************
Shell Script for repo sync:
Provide later!~
********************************************
 
4.Preparation for ur device
(No need to add & edit USB Configuration file on VMware Ubuntu)
lunch shooteru #(for not supported devices, i'll tell u what to do later!You need to write some files urself, like extract-files.sh ,ect.)
# after downloading the specific projects for ur device, connect ur device to ubuntu(better using default roms from the manufacter)
cd ~/cm9/device/htc/shooteru
sh extract-files.sh
cd ~/cm9
vendor/cm/get-prebuilts
# then
brunch shooteru
# wait for it & it may take prenty time.
 

路过

鸡蛋

鲜花

握手

雷人

发表评论 评论 (3 个评论)

回复 ranking_ 2012-12-12 17:12
原来是在做cm9呀。,
回复 YcraD 2012-12-12 18:04
ranking_: 原来是在做cm9呀。,
移植CM10的话得看官方出不出4.1了
回复 ranking_ 2012-12-13 00:40
就是官方没有4.1.那你就是在做cm9咯
返回顶部