The present invention relates to pyridinylaminopyrimidine derivativesrepresented by thefollowing formula (1), and pharmaceutically acceptable salts, preparationprocess and usethereof, wherein R1, R2, R3, R4, R5, m and A are defined as in thedescription.Pyridinylaminopyrimidine derivatives of the present invention can selectivelyinhibit theactivity of mutant-type epidermal growth factor receptor (EGFR), have a goodinhibition forthe cancer cell proliferation, and therefore can be used as a therapeuticagent for treatingtumors and relevant diseases.(see above formula)