[flashrom] [RFC]Improving layout handling