remove cm dependencies
Revert "d2: add inline kernel building"

This reverts commit 849ab08789de11e153f2d385658d6311ba804e8a.