[generic] Add suppport for SPI flash partitions.