add m7 build option