In a large saucepan and a little oil, caramelize the onions, ginger and sugar. Add the tomatoes and bring to a simmer. Season with salt and pepper. Add the stock and simmer on low heat until very soft, at least 20 minutes. Add the basil and puree. Check for seasoning.