m7: add more fancy ifdefs