added $CM_DEVICE

Change-Id: I8e29a285fc535f16e9b90a899568154e91ac4e93