Soak rice for minimum 10 mins,cook it with salt for 3 whistles in medium flame after first whistle.( I used 1: 1& 1/2 , rice : water ratio)
You can cook the rice with the whole garam masalas- cloves, cardamom, cinnamon, bay leaves too.
Cool the cooked rice and keep aside.
Extract tamarind juice from tamarind, by soaking it in hot water for 15 mins. Total water should be not more than 1/2 cup.
Roast all the ingredients except coconut, with few drops of oil under "To roast and grind" to golden brown/nice aroma rises. coconut can be roasted very slightly, so add it lastly.
Cool it and powder it and keep aside.
Cut brinjal into finger length strips and keep it immersed in water till use. cut ginger into thin strips and slit green chillies.
Heat pan/ kadai with a tsp oil and add items under "to temper", roast it nicely.
Once done add ginger,green chillies and curry leaves.
Add brinjals with turmeric and fry till soft for 2 minutes in medium flame.
Pour in the tamarind juice, required salt for brinjal and bring it to boil.
Add the ground masala and simmer for 2-3 minutes or till brinjal gets cooked.
Take care that brinjal doesn't gets mashed. At the end the masala will become a thick paste and shiny.
Switch off flame, mix gently with the cooked rice.