One of the coolest things about guides and tutorials on XDA is that many of them can be used on multiple Android devices. Usually, it’s a modification or a script that can be installed on devices with similar hardware and software but sometimes a truly fun guide or tutorial is compatible for pretty much everyone.
This is the case with a method posted by paul-xxx, who originally posted the process to allow users of the Sony Ericsson Xperia X10 to compile ICS from source using a method originally posted by Dastin1015. The first half of the process, however, can be extrapolated for just about anyone who wants to give compiling Android Ice Cream Sandwich a shot. For aspiring developers, compiling AOSP is always one of the big challenges to overcome.
However, the process is difficult and will require, at the very least, Linux and a minimum of 25GB of storage open to compile a full build so if you’re running low on hard drive space or are rocking a PC or Mac set up, you should probably pass this up for right now. Another thing to keep in mind, in the words of the developer:
This will NOT make a fully functional ROM, but will give you a place to start. Also I CANNOT fix every error you run into.
In other words, you’ll need some troubleshooting skills if you plan on attempting this. Also, keep in mind that about half of the tutorial is for the Xperia X10 only, so if you don’t have one and you’re going through this compiling process, be sure you remember to stop when you get the Xperia X10 portion of the tutorial.
For anyone who wants to give it a shot, you can find the full tutorial in its original thread. This is a great opportunity for aspiring developers to learn how to compile from source._________