Tertiary EGFRC797S mutation induced resistance against osimertinib (1) is an emerging "unmet clinical need" for non-small-cell lung cancer (NSCLC) patients. A series of 5-methylpyrimidopyridone derivatives were designed and synthesized as new selective EGFRL858R/T790M/C797S inhibitors. A representative compound, 8r-B, exhibited an IC50 of 27.5 nM against the EGFRL858R/T790M/C797S mutant, while being a significantly less potent for EGFRWT (IC50 > 1.0 μM). Cocrystallographic structure determination and computational investigation were conducted to elucidate its target selectivity.