Pretoria-born Elon Musk has publicly criticised SA President Cyril Ramaphosa for promoting 'openly racist' legislature.