Compounds having the Formula (I), and enantiomers, diastereomers, pharmaceutically acceptable salts, solvates and solvates of salts thereof, (Formula I)) are useful as kinase inhibitors or modulators, including BTK modulation or inhibition, wherein X1, X2, m, m′;, E and R1 are as defined herein.