Created
August 31, 2011 03:38
-
-
Save Bingnan/1182766 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to compile CyanogenMod for Buzz (HTC Wildfire). | |
This how-to was written for Ubuntu 10.04 & Ubuntu 10.10 & Ubuntu 11.04, Buzz, CyanogenMod 7.x (Gingerbread), on 11 June 2011. | |
Contents | |
[hide] | |
1 Prepare the Build Environment | |
1.1 Install the ADB | |
1.2 Install the Build Packages | |
1.3 Create the Directories | |
1.4 Install the Repository | |
2 Copy proprietary files | |
3 Download RomManager | |
4 Building CyanogenMod | |
4.1 Check for updates | |
4.2 Configure Build & Compile | |
5 Install | |
[edit] Prepare the Build Environment | |
NOTE: You only need to do these steps the first time you build. If you previously prepared your build environment, skip to Copy proprietary files. | |
[edit] Install the ADB | |
Install the Android SDK. | |
[edit] Install the Build Packages | |
Install using the package manager of your choice: | |
For 32-bit & 64-bit systems: | |
git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool | |
For 64-bit only systems: | |
g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib | |
NOTE: gcc-4.3-multilib g++-4.3-multilib is no longer available for Ubuntu 11.04 64-bit, but should still build without issue. | |
NOTE: On Ubuntu 10.10, and variants, you need to enable the parter repository to install sun-java6-jdk: | |
add-apt-repository "deb http://archive.canonical.com/ maverick partner" | |
[edit] 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 | |
[edit] Install the Repository | |
Enter the following to download make executable the "repo" binary: | |
curl http://android.git.kernel.org/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 gingerbread | |
repo sync -j16 | |
[edit] Copy proprietary files | |
NOTE: This only needs done the first time you build. If you have already done these steps, you may skip to Download RomManager. | |
You will need to have a buzz 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/htc/buzz/ | |
./extract-files.sh | |
NOTE: If some hardware isn't working, like camcorder or FM radio, you will need to find the updated prop blobs. | |
[edit] Download RomManager | |
NOTE: This only needs to be done when an update to RomManager is released. If you are-up-to date, you may skip to Building CyanogenMod. | |
Download RomManager which is needed by the build: | |
~/android/system/vendor/cyanogen/get-rommanager | |
[edit] Building CyanogenMod | |
[edit] Check for updates | |
First, check for updates in the source: | |
cd ~/android/system/ | |
repo sync | |
[edit] Configure Build & Compile | |
Now, the environment must be configured to build and the ROM compiled, from code, for the buzz. | |
. build/envsetup.sh && brunch buzz | |
[edit] Install | |
Copy your .zip file from ~/android/system/out/target/product/buzz/update.cm-XXXXX-signed.zip to the root of the SD card. | |
Optional: Download Google Apps for CyanogenMod 7 and place it on the root of the SD card. | |
Flash both of these .zip files from recovery. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment