Heat the oil in a wok and fry the onions until golden brown.Lower the heat and add the garlic, turmeric, chili powder, coriander and cumin. Stir fry the spices for about 5 minutes adding a little water if necessary to prevent them sticking to the wok.