Inherited from Ottoman Turkish یاماق (yamak). By surface analysis, yama- (“to patch, to repair”) + -k (noun-forming suffix).
Practice speaking and memorizing "yamak" and many other words and sentences in Turkish.