ramips: image: introduce mkmtd/{,phys,spi} helpers