[Android Q&A, Help & Troubleshooting] mthous01:
Starting a Noob Build Team for CM-10.1

I'm trying to put together sources so as to build a CM-10.1 for the Azpen A700 (BTW seems Microcenter has pulled these from the shelves... too many people either saying they were unusable, or you guys were returning too many bricks :)). I have posted my sources on my github. The README from the github is as follows.

Guide for building

This assumes that:

A: You have tried to build something in the past.

B: That you have at least some rudimentary knowledge of Linux.

C: That you aren't afraid to dig deeper and ask questions (but not of me, as I know almost as little as you I'd wager)

D: That you have a freakish amount of spare time to try to help out

1st: You must have an android development environment set up. I suggest http://xdaforums.com/showthread.php?t=2224142

2nd: If you are going to try to play along at home with my changes, you probably should get a handle on github. Try http://help.github.com/catagories/54/articles

3rd: If you are going to try to clean up this specific build, you'll need to pull the same sources I am. See below to get that working.

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

Install the Repository

Enter the following to download make executable the "repo" binary:

curl http://commondatastorage.googleapis.com/git-repo-downloads/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 CM-10.1

wget https://github.com/mthous72/local_manifest.xml -O .repo/local_manifests/local_manifest.xml

wget https://github.com/mthous72/local_manifests/local_manifest.xml -O .repo/local_manifests/local_manifest.xml

wget https://github.com/mthous72/local_manifests/raw/master/local_manifest.xml -O .repo/local_mainfests/local_manifest.xml

Sync the repository (do this at night after you go to sleep, as it will take awhile)

repo sync -j16 -f

To Build CM

cd ~/android/system

. build/envsetup.sh ##Note the space between the period and build

lunch ## pick option for nuclear_inet (mine is 5)

mka

make bacon

To Build again

cd ~/android/system

rm -rf *

wget https://github.com/mthous72/local_manifests/raw/master/local_manifest.xml -O .repo/local_mainfests/local_manifest.xml

repo sync -j16

. build/envsetup.sh ##Note the space between the period and build

lunch ## pick option for nuclear_inet (mine is 5)

mka

make bacon

See what errors you come up with and feel free to commit changes to the github.

BTW ften, should I be putting this up on SDK instead?

---------- Post added at 11:56 PM ---------- Previous post was at 11:37 PM ----------

Furthermore, I was able to get a kernel built with the sources in my github that will boot into the bootloader (prior tries didn't get this far). Guess it's time to try to debug via adb (something else new to try to learn).

So far, since the kernel doesn't seem to want to boot, we'll probably have to flash the stock kernel, as well as a "compatibility" zip. I have extracted the libs, modules, etc and have created a flashable zip file that should act as a compatibility zip. It can probably be trimmed for size, but I threw in everything and the kitchen sink.

Further changes are being made as I find them and update the repo. It is suggested to repo sync before each build so that we are on the same page. I will put together a build script to put in your android/system folder that will sync repo, make clobber, run envsetup.sh, and then build using brunch a700. look for it in the local_manifests folder soon. If you run into sync errors, I suggest deleting all folders in the android/system folder except the .repo folder (hidden folder), then resync. I've been making folder structure changes to allow for the build to happen, and this might cause sync issues.