Heat the 1/4cup of oil and sauté the onions, ginger and garlic till onions are soft and a little transparent. Add curry leaves and turn around, then the ground mixture and sauté till the fat separates.
Add the tamarind paste, salt, turmeric, red pepper and mix well, and then add the baingans. Turn around a few times.