Eclair need java 5 to compile
sudo apt-get install sun-java5-jdk
if installed java6 already, need to change current java and javac
sudo update-alternatives --set javac /usr/lib/jvm/java-1.5.0-sun/bin/javac
sudo update-alternatives --set java /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
there is example in vendor folder, which is htc config
TARGET_BOARD_PLATFORM := pxa935 (this name decide where the hardware module name for searching)
hardware/pxa935 is the folder for add new hardware abstraction layer
hardware/pxa935/libcamera
hardware/pxa935/liboverlay
hardware/pxa935/libsensors
hardware/pxa935/libgralloc
hardware/pxa935/libgps
TARGET_CPU_ABI := armeabi
//this one is new since cupcake 1.6, must add this on otherwise can not compile the source code.
to be continue....