[HTC Pico (Explorer)] thewisenerd:
Compiling CM11/Kitkat for pico!

I assume you have knowledge of building with source, even if not, I don't really care (for there are a lot of guides).

First, get *all* the required packages installed. As for what I mean by *all*, is not really a question for me to answer. I used <insert-random-guide-from-xda> here, and the source.android.com's guide on initializing, just to be sure.

As for java, I use openjdk. *most* sources today support openjdk, elseways, either, you could force it to be compatible by removing just ONE line in build/core/main.mk

So, that's the packages part.

As for syncing sources, as most guides say, you DON'T need to use a ~/system folder or anything. You can use a folder, anywhere.

Just open up a shell, wherever you want to get the sources synced, and type in the following commands.

I assume you have the repo tool installed. IMHO, you should really create a "bin" folder in your homefolder (short linked as "~/") using the following commands:

mkdir -p ~/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

Then, open up your ~/.bashrc file, using Geany (a better alternative to Gedit, perhaps :confused: ), using the command:

geany ~/.bashrc

Just insert this line, randomly (preferrably at the end of the file).

PATH=$PATH:/home/<insert-your-username>/bin

Now, for syncing sources. Make sure you are a directory above working folder.

mkdir -p <insert-ROM-name>
cd <insert-ROM-name>

Now, that you are inside the working folder, take your pick about the ROM that you are going to compile. This tutorial is for CM11, so i'd be running the following command.

repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0

Yes, you can reference this from a cm10.2 source that you've already downloaded, and this will reduce the size required to download. Why, you could even reference this from an ICS source (just saying, not meant to be even tried).

If you aren't really building for mac, I'd suggest that you don't download the darwin repos.

Short way that I use:

Run following command in working folder.

mkdir -p .repo/local_manifests
grep "darwin" .repo/manifests/default.xml > .repo/local_manifests/local_manifest.xml

Open up local_manifest.xml using

geany .repo/local_manifests/local_manifest.xml

Add these lines on top:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

and the following line at end.

</manifest>

Now open up "search and replace" dialog box.

Search for:

<project

and replace with:

<remove-project

Voila, you've removed all the unnecessary darwin repos.

Now, for repo syncing.

I'd seriously suggest that if you live in parts of the world where the internet speeds are less than 1 m'b'ps (~128 k'B'ps (worst case, mine's around 60 k'B'ps, and I've known people with speeds ranging 30 k'B'ps), you'd sync just one repo at a time (the -jx).

run:

repo sync -j1

Else, if you have a super fast internet connection, please don't brag. Use a higher number, preferably 3, or 4.

Now, sync these repos, while I attend my classes. I'd return back and write part 2.

edit: part 2; go here: http://xdaforums.com/showpost.php?p=49349691&postcount=8