Hello, hello. You are here for one reason and one reason only; to learn how to compile the AOSP(Android Open-Source Project) Eclair branch for the Motorola CLIQ.
So, without further ado, here it is:
Prerequsites:
-Read "Setting up your machine" and "Installing Repo" here: Get Android Source Code | Android Open Source
Steps:
1 : Open a Terminal Window
2: Create and change directory to "mydroid":
Code:
$ mkdir mydroid
$ cd mydroid
3: Initalize the Repo client:
Code:
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b eclair
While doing this, it will ask you for your name and e-mail address. Make sure to enter the correct information.
4: Download the source(whoo!):
Now, downloading the source will take a WHILE depending on your internet speed! So, grab some coffee, a beer, or your beverage of choice and relax.
5: After the source finishes downloading, you will want to download this file: buildspec.mk
This file defines different variables used to compile the build.
Put this file inside the "mydroid" directory where the AOSP Eclair source is located.
6: Now, delete the vendor folder in your "mydroid" directory and download this file: MustyMod-RIL-Hack.zip
It is MustyMod's RIL hack.
7: Replace the folders in "mydroid/hardware/ril" with MustyMod's RIL hack.
8: After you have completed the preceding steps, you are now ready to compile your build.
Make sure you are in the root of your "mydroid" folder and type this:
The way I see it is the number after "-j" depends on the number of cores in your processor; take the number of cores your processor has and double it. So, if you have an Intel Core2Duo(dual-core), you could use "make -j4", and if you have an Intel Core2Quad(quad-core), you could use "make -j8."
Now, after the build compiles, open "mydroid/out/target/product/generic/system" and you will now see the build you have compiled!
You can now add the 2.6.29 boot.img and dhd.ko from the leaked 2.1 BLUR build and this will make a build that will run on the CLIQ! It will, however, not make the radio, vibration, amongst other features work.
Hope you enjoy it and have fun!
TIPS:
Fixing Vibration:
Open "mydroid/hardware/libhardware_legacy/vibrator" and open "vibrator.c"
Change the following line from:
Code:
#define THE_DEVICE "/sys/class/timed_output/vibrator/enable"
to:
Code:
#define THE_DEVICE "/sys/class/vibrator/vibrator/enable"
Now, a couple of people have asked me to include a list of the proprietary files that made certain features, like radio, and wi-fi work, but to tell you the honest truth; I don't remember. The way I did this was by pushing different files from the 1.5 BLUR build and seeing what worked and what didn't. Sorry I couldn't help more, but I hope this helps someone make a better ROM than Eclair2CLIQ.
ALSO, this technique WILL work on compiling Froyo with a few differences, of course, but Froyo will not run correctly like Eclair does! It soft-reboots quite often.