For not mbed-os capable platforms build process should not be attempted. Now it fails in the middle trying to compile RTOS support: ``` Failed to build library ./rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c:65:6: error: #error "no target defined" # error "no target defined" ^ ./rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c:105:6: error: #error "no target defined" # error "no target defined" ^ ./rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c:269:6: error: #error "no target defined" # error "no target defined" ^ ``` Found when testing PR #2285