This should get you going
http://forum.xda-developers.com/showthread.php?t=295889
EDIT: You can probably use the OEMIzer to create your XML file and then follow the rest of the instructions in the link above. It would probably be a lot easier using the OEMIzer.