How can I add the market to my device?
Android Market is not a freeware, unlike the rest of Android OS, so I'm not sure if there is a legal way to install it on your custom OS. I suggest you take a look at these threads:


Alternative Android App Markets
Install Apps on phone with no Android Market