changes according to mibuild, fix spi flash