Disclaimer
Please note that Project Panda is a customized version of CyanogenMod / Android Open Source Project (AOSP). Project Panda is NOT supported nor endorsed by Cyanogenmod.
Prepare the Build Environment
Install the Android SDK OR find your favorite adb.zip.
Installing required packages (Ubuntu 10.04 - 11.10)
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc
On Ubuntu 10.10
sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
On Ubuntu 11.10
sudo apt-get install libx11-dev:i386
Installing required packages (Ubuntu 12.04)
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Create the Directories for the Build Environment
mkdir -p ~/bin
mkdir -p ~/android/system
Sync the Repo
Enter the following to download make the repo binary executable:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
NOTE: A reboot of the computer may be necessary for the above changes to be recognized.
Initialize and Sync the Repo
cd ~/android/system/repo init -u git://github.com/ProjectPanda/android.git -b ics
repo sync -j4
Sync Relevant Repositories
By default, The Panda Project 2.0 only syncs the core android repositories and none of the device or kernel trees to save both bandwidth and time. Run the following command to sync the necessary components for the device:
. build/envsetup.sh && breakfast toro
Copy Proprietary Files
NOTE: This only needs to be run once. This step requires possession of the Toro with a working copy of CyanogenMod 9 installed and ADB working on the computer. This script will copy the proprietary files from the device.
Connect the device to the computer and run the following commands:
cd ~/android/system/device/samsung/toro/./extract-files.sh
Download Prebuilts
Downloaded Prebuilts are needed by the build:
~/android/system/vendor/cm/get-prebuilts
Building Project Panda
Check for Updates
First, check for updates in the source:
cd ~/android/system/repo sync
Configure Build & Compile
Now, the environment must be configured for the build process and then begin compilation for the Toro.
. build/envsetup.sh && brunch toro
Pickup your Build!
- Copy the .zip file from ~/android/system/out/target/product/toro/cm-9-XXXXX-UNOFFICIAL-toro.zip to the root of the SD card.
- Optional: Download Google Apps for CyanogenMod and place it on the root of the SD card.
- Flash both of these .zip files from recovery.