Heat a pan adding oil, mustard, lentils and curry leaves. As the mustard seeds splutter, add chopped onion. Saute the onions till they turn translucent. Then include brinjal cubes draining all water. Add little salt and keep it covered. Cook for 10 minutes.
Meanwhile roast the peanuts in medium flame and cool it down. Peel off the skin and take it in a mixer jar.
Add coconut, green chillies, cumin seeds, garlic cloves, chopped onion, turmeric powder and coriander leaves.
Grind all these ingredients together along with some water.
By now, the brinjals would have cooked soft. Keep stirring in between for even cooking. Next, add ground masala from above step. Mix well.
Add salt, red chilly powder, tamarind water and jaggery. Adjust consistency by adding water and bring it to boil.
Very tasty badanekayi palya in North Karnataka style is ready. Serve it with chapati and rotti.