How to compile CyanogenMod for Maguro (GSM Galaxy Nexus).
This how-to was written for Ubuntu 12.04 for Maguro running
CyanogenMod 9.x (Ice Cream Sandwich), on 12 April 2012.
Prepare the Build Environment
NOTE: These steps only need to be performed once. If the build environment is already prepared, skip to
Copy proprietary files.
Install the
ADB
Install the
Android
SDK.
Install the Build Packages
Install using preferred package manager:
For 64-bit systems:
git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev:i386 g++-multilib mingw32 openjdk-6-jdk pngcrush schedtool tofrodos python-markdown
libxml2-utils xsltproc zlib1g-dev:i386
Create the Directories
You will need to set up some directories in your build environment.
To create them:
mkdir -p ~/bin
mkdir -p ~/android/system
Install the Repository
Enter the following to download make executable the "repo" binary:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
NOTE: You may need to reboot for these changes to take effect.
Now enter the following to initialize the repository:
cd ~/android/system/
repo init -u git://github.com/CyanogenMod/android.git -b ics
repo sync -j16
Sync Relevant Repositories
NOTE: This only needs to be done the first time after installing the repository. If you have already done this step, you may skip to
Copy Proprietary Files.
By default, CyanogenMod 9 only syncs the core
android repositories and none of the device or
kernel trees to save both bandwidth and time. Run the following command to sync the necessary components for the device:
. build/envsetup.sh && brunch maguro
Copy Proprietary Files
NOTE: This only needs to be done the first time you build. If you have already done these steps, you may skip to
Download Prebuilts.
You will need to have a maguro with a working copy of CyanogenMod install and
ADB working on the computer. This script will copy the proprietary files from the device.
Connect the device to the computer and ensure that
ADB is working properly.
cd ~/android/system/device/samsung/maguro/
./extract-files.sh
NOTE: If some hardware isn't functioning properly, you may need to run the above command again for updated proprietary files.
Download Prebuilts
Download Prebuilts needed by the build:
~/android/system/vendor/cm/get-prebuilts
Building CyanogenMod
Check for updates
First, check for updates in the source:
cd ~/android/system/
repo sync
Configure Build & Compile
Now, the environment must be configured to build and the
ROM compiled, from code, for the maguro.
. build/envsetup.sh && brunch maguro
Install
- Copy your .zip file from ~/android/system/out/target/product/maguro/update.cm-XXXXX-signed.zip to the root of the SD card.
-
Optional: Download
Google Apps for CyanogenMod 9 and place it on the root of the SD card.
-
Flash both of these .zip files from recovery.
分享到:
相关推荐
NULL 博文链接:https://pop1030123.iteye.com/blog/1402747
protobuf 建立proto文件的依赖编译关系
RxBinding RxJava binding APIs for Android UI widgets from the platform and support libraries. Download Platform bindings: compile 'com.jakewharton.rxbinding2:rxbinding:2.0.0' ...compile
2.1 使用compile_shell shell script编译连接:./compile_shell 2.2 使用Makefile文件 编译连接:make 3. 运行生成的可执行文件: ./mainEXE (注意代码注释和输出数据中包含中文,要求linux系统支持中文显示) (通过...
[INFO] +- log4j:log4j:jar:1.2.17:compile [INFO] +- org.apache.openejb:javaee-api:jar:5.0-1:provided [INFO] +- javax.faces:jsf-api:jar:1.2_04:provided [INFO] +- javax.servlet:jstl:jar:1.2:provided ...
> Task :compileJava FAILED /Users/bflint/IdeaProjects/lombok-module-jdk10/src/main/java/module-info.java:2: error: module not found: lombok requires lombok; ^ 1 error FAILURE: Build failed with an ...
compile 'homhomlin.lib:psv-library:1.0.1' or Maven dependency: homhomlin.lib psv-library 1.0.1 API v12 : Gradle dependency: compile 'homhomlin.lib.v12:psv-library:1.0.1' or Maven dependency: ...
本篇文章是对Neatbeans(常见错误) build-impl.xml:305: Compile failed的解决方法进行了详细的分析介绍,需要的朋友参考下
周期: a. clean 生命周期:clean b. default 生命周期: compile,test-compile,test,package,install c.... d. 不同的生命周期可以一起执行命令,例如先clean再compile...compile<- test-compile<- test <- package<- install
打印编译日期 如:Software Compile Date :2023-09-06 14:04:18
linux ko compile .zip linux ko compile .zip
内核,是一个操作系统的核心。它负责管理系统的进程、内存、设备驱动程序、文件和网络系统,决定着系统的性能和稳定性...本文将以RedHat Linux 6.0(kernel 2.2.5)为操作系统平台,介绍在Linux上进行内核编译的方法。
compile(group = "io.github.rybalkinsd", name = "kohttp", version = "0.7.1") gradle groovy DSL: compile 'io.github.rybalkinsd:kohttp:0.7.1' maven: io.github.rybalkinsd kohttp 0.7.1 Usage Sync ...
compile 'homhomlin.lib:sldinglayout:0.9.0' or Maven dependency: homhomlin.lib sldinglayout 0.9.0 依赖: 如果你的项目需要支持API V9,你需要添加以下依赖: compile 'com.nineoldandroids:library:2.4.0'...
本人亲自试验教程可用,该步骤编译centos7系统内核,生成rpm包进行安装,网上试验很多教程在windows虚拟机上编译成功,安装成功,但系统切换新内核以后无法进入系统。 本人试验环境:win10系统 ...
JavaC: Compile Current File JavaC: Compile & Run Current File JavaC: Compile Current Project JavaC: Compile & Run Current Project JavaC: Generate Jar Package For Project JavaC: Generate & Run Jar ...
compile 'com.sum.xlog:xlog:1.1.4' 初始化: XLogConfiguration.Builder builder = new XLogConfiguration.Builder(MyApplication.this) .setConsoleLogLevel(LogLevel.D) //Logger输出最低级别 .setFileLogLevel...
iperf3 static compile for arm-linux
compile 'io.reactivex:rxandroid:1.2.1' compile 'com.squareup.retrofit2:converter-gson:2.0.2' compile 'com.squareup.retrofit2:adapter-rxjava:2.0.2' compile 'com.trello:rxlifecycle:0.7.0' c
compile(name:'sdk-zhousf-1.0-20170907.054540-1',ext:'aar') 但是如果aar中包含了远程依赖,例如aar中依赖了第三方库: compile 'com.zhousf.lib:okhttp3:2.8.6' 若采用上面的方法引用则在运行时会找不到okhttp3 ...