Cut the eggplant and tofu into bite-sized pieces.
Sprinkle the eggplant with salt and olive oil and let sit for 10 minutes.
Heat olive oil in a pan and grill the eggplant until golden brown.
Pat the tofu dry with a paper towel, then mash it.
In an oven-safe dish, layer the grilled eggplant, mashed tofu, and tomato sauce.
Top with mozzarella cheese.
Bake in a preheated oven at 180°C (356°F) for 15–20 minutes.