In a skillet, saute the onion in the olive oil until it is brown. Add the butter and lower the heat. As the butter melts, add the flour, stirring constantly to keep it from burning. After the flour browns, add the stock and stir until the gravy thickens. Season with salt and pepper.