Monday, December 5, 2011

[DEV]Cyanogenmod Compiling for Olive Pad

This  is a guide for developers wishing to build & test Cyanogenmod 7.1 port on their Pad
NON DEVELOPERS PLEASE IGNORE!!

Initialize environment from here:
Make directories:




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


Downloading the source:


Now enter the following to initialize the repository:

cd ~/android/system/
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
repo sync 


This may take some time depending on your net connection

Add Device Repo:

After download source you need to download the olive pad device config

mkdir  device/fih/fm6
cd device/fih/fm6
git clone https://github.com/mb-14/android_device_fih_fm6.git

Download this zip file from here:
http://dl.dropbox.com/u/21654931/fm6.zip

Extract the contents of the zip file.It contains one folder "fm6"
and a file "cyanogen_fm6.mk"

Copy the folder "fm6" to /vendor/cyanogen/overlay/
Copy the file "cyanogen_fm6.mk" to /vendor/cyanogen/products/

Open /vendor/cyanogen/products/AndroidProducts.mk and add this to the list:
$(LOCAL_DIR)/cyanogen_fm6.mk \


Open /vendor/cyanogen/vendorsetup.sh and add this to the list:
add_lunch_combo cyanogen_fm6-eng




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.

Connect the device to the computer and ensure that ADB is working properly.
cd ~/android/system/device/fih/fm6/
./extract-files.sh
NOTE: If some hardware isn't working, like camcorder or FM radio, you will need to find the updated prop blobs.

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 ROM.

Download RomManager which is needed by the build:
~/android/system/vendor/cyanogen/get-rommanager