M-theory and generalized cohomology