add cma_server_legacy component, build ok, coding not finished.