Place all ingredients in a heat proof bowl (not a thin ceramic or glass one). I place the bowl in the sink just in case of an accident. Add all the dry ingredients to the bowl. Heat the cup of oil with the ginger in it, until the ginger fries and turns golden brown - this is about 180-90 degrees.
Carefully pour the oil into the bowl over the spices and stir with a metal spoon. Once cool, remove the bay leaves and star anise, then store in a clean class jar or bottle. It will keep a long time in the fridge, or a few weeks at room temperature.