Drain the tofu and mash it finely.
Finely chop the onion and carrot.
Heat olive oil in a pan and sauté the onion and carrot.
Add the tofu and cook until most of the moisture evaporates.
Season with soy sauce, salt, and pepper.
Cook on low heat for a little longer to finish.