This page includes instructions to help you set up an Android build system.
Visit the IRC channel #htc-linux on Freenode or visit the Kaiser or Polaris development threads on XDA-Developers or visit the Vogue android page hosted by dzo. Submit bugs in a bugtracker.
This guide is based off the one at the XDA Developers Wiki.
If you are running a Debian/Ubuntu based distribution, you can simply run the following command in a Terminal to download and install all the necessary prerequisites:
sudo aptitude install git-core git jfsutils xfsprogs quota isdnutils-base nfs-common oprofile
If you are running another distribution, you'll need to find out the equivalent packages and download/install them.
mkdir ~/android-kernel cd ~/android-kernel
wget http://www.codesourcery.com/downloads/public/gnu_toolchain/arm-none-linux-gnueabi/arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 -O arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 tar xjf arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 export PATH=~/android-kernel/arm-2008q3/bin:$PATH
git clone git://git.linuxtogo.org/home/groups/mobile-linux/kernel.git
cd kernel git checkout -b htc-vogue origin/htc-vogue
make vogue_defconfig ARCH=arm; make menuconfig
make zImage ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-