6 Establishment of Android
Development Environment
Apart from the cross compilation tools and environment variables, there are
a few additional software packages which need to be installed and several
configurations that need to be set in the Ubuntu system before any Android
system source code can be compiled. Please visit:
http://source.android.com/source/initializing.html
For more information.
6.1 System Compilation
6.1.1 Preparation
Source codes of all components of the system are saved under the directory
linux/source in the disc; they require decompression in the Ubuntu system
before beginning development:
mkdir $HOME/work
cd $HOME/work
tar
/media/cdrom/linux/source/u-boot-2011.09-psp04.06.00.
03.tar.bz2
tar
/media/cdrom/linux/source/linux-3.2.0-psp04.06.00.08.
sdk.tar.bz2
tar
/media/cdrom/linux/demo/android/source/linux-3.1.0-an
droid.tar.bz2
sudo tar xvf /media/cdrom/linux/source/rootfs.tar.bz2
tar
/media/cdrom/linux/demo/android/source/rowboat-androi
d-gingerbread-am335xevm.tar.bz2
When
the
above
u-boot-2011.09-psp04.06.00.03,
Linux-3.1.0-android, rootfs and rowboat-android-gingerbread-am335xevm
will be created under the current directory.
steps
are
finished,
Linux-3.2.0-psp04.06.00.08.sdk,
xvf
xvf
xvf
xvf
the
directories
Page | 33