* Indigo -> wifi only
* IndigoF -> 3G Ericsson
* IndigoG -> 3G Gobi
* IndigoR -> Recovery
(original tutorial made by jbaiter)
Work in progress!!!
- Install Android SDK
Pretty self-explanatory, you will need the adb
tool. Make sure you can
connect to your device (i.e. adb shell
should work) before you start.
- Install Build Packages
For 32-bit & 64-bit systems:
git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool
For 64-bit only systems:
g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib
- Create the Directories
You will need to set up some directories in your build environment. To create them::
mkdir -p ~/bin
mkdir -p ~/cm10_tpt
- Install the Repository
Enter the following to download and make executable the repo
binary::
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Enter the following to initialize the repository::
cd ~/cm10_tpt
repo init -u git://github.com/CyanogenMod/android.git -b jb
Create a file local_manifest.xml
in ~/cm10_tpt/.repo
, with the following content::
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="frameworks/base" name="Koshu/android_frameworks_base" revision="jb" />
<project path="device/LENOVO" name="Koshu/thinkpad_tablet_device_tree_jb" revision="master" />
<project path="kernel/LENOVO/Indigo" name="Koshu/thinkpad_tablet_jb_kernel" revision="master" />
</manifest>
Edit the file manifest.xml
in ~/cm9_tpt/.repo
and remove the following line::
<project path="frameworks/base" name="CyanogenMod/android_frameworks_base" />
If you only want to build CM10 for the Thinkpad Tablet, you can also remove the following devices from manifest.git
and save a lot of bandwith and harddisk space::
Now you can download the source tree::
repo sync -j16
- Copy proprietary files
For this, you will need a ThinkpadTablet with the stock firmware that you
can connect to via adb
. Connect the device to your machine via USB and ensure
that adb
is working properly (i.e. adb shell
should work).
Then enter the following::
cd ~/cm10_tpt/device/lenovo/thinkpadtablet
./extract-files.sh
- Build CyanogenMod 10
First of all, check if there have been any updates since you last synchronized the source code::
cd ~/cm10_tpt
repo sync
Next, configure the build environment and build the image::
. build/envsetup.sh
For wifi-only: brunch cm_Indigo-userdebug
For 3G-Ericsson: brunch cm_IndigoF-userdebug
For 3G-gobi: brunch cm_IndigoG-userdebug
- Install the image
If everything went well, you should have a file similar to this::
~/cm10_tpt/out/target/product/thinkpadtablet/cm-10-XXXXXX-UNOFFICIAL-Indigo.zip
Copy this file to the root of your internal or external SDCard and flash it using ClockworkRecovery.