spi: tools: Add macro definitions to fix build errors