add CMA config options

(cherry picked from commit 951680713260a137a20a367b15bbd4bce95069c5)