Take a frying pan and heat it on a low flame on your gas stove. When it is hot enough, put 1 cup of garlic cloves in it. Make sure you slice them in thin pieces as shown to ensure better roasting.
Stir them continuously for about 2 minutes on a low flame until they turn slightly golden-brown in color.
Now add 1 cup of semolina to it. Stir them continuously.(Pro tip: Adding semolina is not essential. It will primarily prevent the garlic cloves from getting burnt and will also help in losing moisture quickly). After 15 to 20 minutes of stirring, the garlic cloves should be nicely roasted, crispy, and slightly brown in color.
Check them. Take one piece and break it. They must be dry and break easily.
Now, take a strainer.
Transfer the roasted garlic cloves along with the semolina to the strainer.
Separate the semolina from the garlic cloves. Use your hands to rub and separate the semolina sticking to the garlic cloves. Ignore the few remaining in it.
Now, take a clean and dry grinder, grind the garlic cloves to a smooth powder, transfer it to a bowl, and your homemade garlic powder is ready to be used in a variety of dishes and curries.