This is a chroot environment for building CyanogenMod 10 from source for the Barnes & Noble NOOK Color. There are a couple of features that enhance the user experience
- the command prompt is prefixed with
AndBot:, making it easy to distinguish between the usual interface and the development environment - the prefix changes color depending on the success of the previous command: green symbolizes success and red symbolizes failure
- there is an
andbotcommand within easy reach, providing shortcuts to several common activities - most
andbotcommands support autocompletion -- just press tab
To use a prebuilt chroot, download it and run
chmod +x andbot.run
./andbot.run
If you have sudo installed, you should be asked for your password at the end, and then dropped into the chroot environment.
To exit, type exit or logout, or press ^D.
Alternatively, you could make the chroot yourself using scons debian package=andbot; scons debian package=andbot-git-repo; sudo scons andbotfs.
To enter the environment again, simply do
./andbotfs/andbot
Now, you are ready to start. For your convenience, the andbot commands provide shortcuts to things that you would be doing often. To set up, run
andbot init
andbot manifest
To download the source code for building CyanogenMod, do
andbot sync -j16
It might take a while to download ~6gb of source code, and the sync might fail with an error like
error: Cannot fetch CyanogenMod/android_prebuilt
To work around this, run andbot github-https and retry.
Next, you must copy proprietary files from your NOOK Color. To do this, plug the device into your computer and run
andbot prebuilt
If the previous command malfunctions, you might need to tinker with adb a bit to make it recognize your device. Alternatively, you could just get these files from an existing update.zip
andbot prebuilt path/to/update.zip
Finally, to start the build, run
andbot brunch encore
This might take a few hours depending on your hardware specs, so go rest or be productive. If you see errors regarding signapk.jar, you might not have sufficient memory; run andbot release-512 and retry. When it's done, you should find an update package in ~/android/system/out/target/product/encore -- enjoy!
nb: You might want to access this update package from outside the chroot. Look for it in andbotfs/out/tar get/product/encore.
Keeping your source and binaries up-to-date is as easy as
andbot sync
andbot brunch encore
Remember to check FatTire's tutorial periodically to see if anything's changed. If you want, you could add these changes to /andbot yourself, or you could ask someone to do it for you. You might also find an updated /andbot within this very repository.
This should be totally compatible with the "standard" method of building CyanogenMod, except everything is contained within a directory. You don't even have to use the andbot commands, or you could use them only for some tasks.