For obtaining a complete build environment the following things are neccessary:
- A Linux system
- Root access to install the neccessary tools
Next these steps neeed to be performed:
- Install the neccessary software packages
- Install + setup repo
- Setup your working directories
- Fetch the sources
Here are the detailed instructions to perform these steps:
Install the neccessary software packages
- Open a terminal and run the following comands to install the various tools you will need.
- Code: Select all
sudo aptitude install git-core gnupg sun-java6-jdk flex bison gperf libsdl-dev ncurses-dev libc6-dev-i386 libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind
Install + setup repo
- Make sure you have a /bin directory in your /home directory
- Code: Select all
cd ~/
mkdir bin
echo $PATH
You should see something like ':/home/user_name/bin:' in a line of text. If you don't see this, try restarting your computer or add it to your path (in case you are using the bash shell) by executing- Code: Select all
echo "export PATH=$PATH:$HOME/bin" >>~/.bashrc
and restarting your terminal. (we should admit that adding a user writable directory into the path may decrease your computer security) - Download repo and make it executable
- Code: Select all
curl http://android.git.kernel.org/repo >~/bin/repo
chmod a+x ~/bin/repo
Setup your working directory
- Run these command to create the working directories
- Code: Select all
mkdir JetDroid
cd JetDroid
Fetch the sources
- Fetch the platform souce. These files are needed even if you only want to compile the bootloader or the kernel as it contains the cross-compiling tools.
- Code: Select all
mkdir JetPlatform
cd JetPlatform
repo init -u git://github.com/JetDroid/JetPlatform_manifest.git -b eclair
repo sync
cd ..
- Now fetch the kernel source. The kernel sources are needed to compile the bootloader.
- Code: Select all
git clone git://github.com/Dopi/JetKernel.git JetKernel
cd JetKernel
git pull origin testing-2.6.29
cd ..
- After this you can fetch the bootloader source
- Code: Select all
git clone git://github.com/Dopi/JetQi.git JetQi
cd JetQi
git pull origin testing
cd ..
- Finally you need to create two symbolic links
- Code: Select all
ln -s JetKernel linux
ln -s JetPlatform/source android
Now your done! Happy compiling!